是什么点击鼠标点击之间的区别? [英] What is the difference between a click and mouseclick?

查看:134
本文介绍了是什么点击鼠标点击之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是什么点击鼠标点击之间的区别?

What is the difference between a click and mouseclick?

推荐答案

假设你指的是WinForm控件的事件,从MSDN文档的 Control.Click

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

Click事件传递一个EventArgs它的事件处理程序,因此它只能说明发生了点击。如果您需要更具体的鼠标信息(按钮,点击次数,轮转动,或位置),使用MouseClick事件。然而,MouseClick事件不会如果点击被比鼠标,如按ENTER键。

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.

这篇关于是什么点击鼠标点击之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆