How do I break when an event occurs or define associated handlers?
I am using a large open source control and I cannot find any code that handles the double click event. Could I possibly turn off the debugger on double click or otherwise find out what code is associated with this event?
0
Qwertie
source
to share
2 answers
Well, I stumbled until I found the code I was looking for.
By the way, before the DoubleClick event, the MouseDown event occurs for the second click with MouseEventArgs.Clicks == 2.
0
Qwertie
source
to share
The event you are probably looking for is Control.MouseDoubleClick , which is raised whenever the mouse double-clicks. Or, if you exit Control, you can override OnMouseDoubleClick .
0
Charlie
source
to share