Hi Henkerstone,
I am sure what exactly you want to achieve, but to disable the DoubleClick event on the form, we usually try the something like the following:
Code Snippet
const int WM_LBUTTONDBLCLK = 0x0203;//client area
const int WM_NCLBUTTONDBLCLK = 0x00A3;//non-client area
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_LBUTTONDBLCLK)
return;
if (m.Msg == WM_NCLBUTTONDBLCLK)
return;
base.WndProc(ref m);
}
Hope this helps.
Best regards.
Rong-Chun Zhang