C#Windows应用程序中的Click/Enter键事件之间的区别是什么 [英] What is the Diffrence between Click/Enter Key Event in C# Windows Application

查看:120
本文介绍了C#Windows应用程序中的Click/Enter键事件之间的区别是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按钮控件上的Click事件/Enter键事件有什么区别
在C#Windows应用程序中

帮助我

What is the Difference between Click Event/Enter Key Event on Button Control
in C# windows application

Help Me

推荐答案

单击事件是在控件被单击时发生的,否则将导致其采取默认操作-通过键盘的空格键或ENTER键例如键.

该按钮或任何其他标准控件没有EnterKey事件.有一个KeyPress事件,但不是特定于ENTER键
The Click event happens when the control is Clicked, or otherwise caused to take it''s default action - by the keyboard SPACE bar, or the ENTER key, for example.

There is no EnterKey event for the button or any other standard control. There is a KeyPress event, but that is not specific to the ENTER key


这篇关于C#Windows应用程序中的Click/Enter键事件之间的区别是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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