Created
April 22, 2015 23:14
-
-
Save cakesmith/eb6f798e37848441c5b6 to your computer and use it in GitHub Desktop.
Bug Fix for TreeView Component checkbox (doubleclick)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Windows.Forms; | |
| public class MyTreeView : TreeView { | |
| protected override void WndProc(ref Message m) { | |
| // Suppress WM_LBUTTONDBLCLK | |
| if (m.Msg == 0x203) { m.Result = IntPtr.Zero; } | |
| else base.WndProc(ref m); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment