I am not able to get MouseDoubleClick event fired for my ListBox. I have added MouseDown
Event. Every time I double click MouseDown Event is fired Why is this happening?
I am not able to get MouseDoubleClick event fired for my ListBox. I have
Share
There are a couple of events fired, when you press a mouse button over a control. They are fired in this order:
The DoubleClick event will be fired, if you double click the control in a certain time span. So the event should be raised. If you do something “magic” in your MouseDown event, it is possible that the MouseDoubleClick will not be raised.
If you need more help, post the MouseDownEvent code and tag your question wether it is in WinForms or WPF.
Edit:
If you have a breakpoint in the MouseDown Event and you are running your code in debugger, the MouseDoubleClick will not be catched by the debugger. Debugging UI events is not very easy…