Skip to content

Instantly share code, notes, and snippets.

@cakesmith
Created April 22, 2015 23:14
Show Gist options
  • Save cakesmith/eb6f798e37848441c5b6 to your computer and use it in GitHub Desktop.
Save cakesmith/eb6f798e37848441c5b6 to your computer and use it in GitHub Desktop.
Bug Fix for TreeView Component checkbox (doubleclick)
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