热键"F10"出现问题 [英] Problem with HotKey "F10"

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

问题描述

大家好.
我的应用程序是VS2005上的C#.我做了一些热键,但是当我使用"F10"时出现了问题.按下此按钮时,Windows会激活菜单栏.而且不知道如何将焦点返回到Form上才能使用其他热键当我第二次按下F10时,它的菜单栏被停用,一切正常.
在此先谢谢您.

Hello everybody.
My application is a C# on VS2005.I make a few hotkeys but when I use "F10" have a problem.When press this button windows activate menu bar.And don''t know how to return focus on my Form to work other Hotkeys.When I press F10 for a second time it''s deactivate menu bar and everything is OK.Any idea how to do this by code?

Thanks in advance.

推荐答案

这是仅用于常规键盘的命令".也许您可以使用事件处理程序来捕获它并设置e.Handled = true.

http://support.microsoft.com/kb/126449 [ http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx#Y570 [
This is a "General keyboard-only command". Maybe you can use an event handler to catch the it and set e.Handled = true.

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

Good luck!


这篇关于热键"F10"出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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