How do I prevent Menu Controls Shortcut Keys?

  • Thread starter Thread starter talljames
  • Start date Start date
T

talljames

Hi group,

I have a windows form that uses the F10 function key. The only problem
is that this key is also the shortcut key for the menu Controls and
highlights the first menu item. I need to press F10 twice to achieve
what I want. I do not want the user to have to hit F10 twice all the
time.

Does anyone know how to get around this? I am using the KeyDown and
KeyPress.

with regards
 
talljames said:
I have a windows form that uses the F10 function key.
The only problem is that this key is also the shortcut
key for the menu Controls and highlights the first menu
item. I need to press F10 twice to achieve what I want.
I do not want the user to have to hit F10 twice

You should be able to override menu access with F10 by using:
e.Handled = true;
.... but you might annoy users who like to use F10 for that purpose.

Similar discussion here: http://tinyurl.com/4zrgr

P.
 
Back
Top