What is the difference between a click and mousecl

2020-02-17 11:33发布

What is the difference between a click and mouseclick?

标签: c# winforms
2条回答
Juvenile、少年°
2楼-- · 2020-02-17 12:13

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.

查看更多
倾城 Initia
3楼-- · 2020-02-17 12:16

A click can be caused by not only a mouse click, but also some events like a pressed key, etc. For more information, see Control.Click Event.

查看更多
登录 后发表回答