WinForms disable double clicks and accept all mouse clicks?

后端 未结 3 1201
陌清茗
陌清茗 2020-12-19 07:38

How do you get all clicks to go through the event? I noticed if you click too fast it thinks you are double clicking and doesn\'t send the clicks to the event handler. Is th

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-19 08:19

    You want to use the controls MouseDown event instead of the Click event. MouseDown will be called every single time the mouse is "pressed" on that control. Click may not get called if the system thinks it was a double click. A DoubleClick event would be raised instead.

提交回复
热议问题