Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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!
 
Share this answer
 
Comments
t_nedelchev 8-Nov-11 8:46am    
Thanks.It works

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900