按ESC键来调用方法 [英] Press Escape key to call method
本文介绍了按ESC键来调用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有,如果键被按下,开始在C#中的方法的方法吗?例如,<大骨节病> ESC 骨节病>?
解决方案
我写WinForms应用程序。用户填写文本框,如果他想删除一切,他只需点击<大骨节病> ESC 骨节病>键盘上的键
块引用>
我认为你需要处理 KeyDown事件。
Is there a way to start a method in C# if a key is pressed? For example, Esc?
解决方案I am writing WinForms application. User fills the textbox and if he wants to delete everything, he just clicks esc key on keyboard
I think you need to handle the KeyDown event.
这篇关于按ESC键来调用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文