识别按键 [英] identify keypress

查看:83
本文介绍了识别按键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想暗示ctrl + Z ctrl + v功能..不知道要使用哪个事件?

I want to impliment ctrl+Z ctrl+v feature.. dont know which event to use?

推荐答案

您可以使用MDI父表单并可以添加一个工具条MenuItem&可以将其设置为快捷键.您还可以在工具条menuItem单击中执行操作.因此,当ctrl + Z或ctrl + v出现时,它将触发工具条menuItem单击.
You can use MDI parent Form & can add a Tool Strip MenuItem & can set it short cut keys. And you also able to perform your operation in tool strip menuItem click. So, when ctrl+Z or ctrl+v occur then it will fire the tool strip menuItem click.


伙计,我真的很讨厌说先尝试google:

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx [ ^ ]
Man, I''m really getting tired of saying try google first:

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx[^]


再次,google是您的朋友:

http://social.msdn.microsoft.com/论坛/en-US/winforms/thread/451871ac-bc88-4c71-a840-386c21d8125e [
Again, google is your friend:

http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/451871ac-bc88-4c71-a840-386c21d8125e[^]


这篇关于识别按键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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