How to cancel standard mouse event handling?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a control with a standard reaction to doubleclicks, that I would like
to overwrite.

In good old Win32 days this could simply be done by not calling DefWndProc
for the event. I cant find a way to do this in WinForms

Do you have a suggestion on how to handle this?

Thanks in advance
Soeren D.
 
Soeren D. said:
I have a control with a standard reaction to doubleclicks, that I would
like
to overwrite.

In good old Win32 days this could simply be done by not calling DefWndProc
for the event. I cant find a way to do this in WinForms

Create a class that inherits from the control and override the control's
'OnDoubleClick' method. Inside the event handler simply do not call
'MyBase.OnDoubleClick(e)'.
 
Back
Top