using F7 as shortcort doesn't work?

  • Thread starter Thread starter Torben Jensen
  • Start date Start date
T

Torben Jensen

Hi,

I am having trouoble using the F-kesy as shortcuts.

The shortcut is defines like this (c#):

btnRun.Shortcut = Shortcut.F7;

I have provided the button with a valid eventhandler that works just fine
when pressing the button, but pressing the F7 key doesn't trigger anything
at all.
All my other shortcuts that doesn't use F-keys are defined in the same and
they work just fine.

Has anyone experinced the same problems and maybe found a solution?

Thank you.
Torben
 
Sorry, I might have expressed my self wrong, and I now see why.

I did not mean that I was using the F7 key as an accerator for a
buttonclick. I want to associate the F7 key to one of my menuitems.

itmRun.Shortcut = shortcut.F7;

All shortcuts for my menuitems using the F-keys doesn't work while the
ones using e.g. the ctrl key works just fine.

Does anybody have an idea why this seems to be a problem?

Thank you.

Torben
 
After further investigation, it seems that this is an MDI problem. It
seem that menues in MDI child forms are not included in the processing
of menu shortcuts.

Does anyone have a solution for this ?
 
Back
Top