What is the difference between a click and mouseclick?

后端 未结 2 1582
野的像风
野的像风 2020-12-25 10:39

What is the difference between a click and mouseclick?

2条回答
  •  礼貌的吻别
    2020-12-25 11:10

    Assuming you're referring to WinForm Control events, from the MSDN documentation for Control.Click:

    The Click event passes an EventArgs to its event handler, so it only indicates that a click has occurred. If you need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event. However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as pressing the ENTER key.

提交回复
热议问题