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
> Use the Form.KeyPreview property, set it to true and in the forms
> KeyPress eventhandler fire your button click.
[quoted text clipped - 4 lines]
> http://www.indiangeek.net
> http://weblogs.asp.net/sjoseph
cblicher - 18 Oct 2004 15:11 GMT
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 ?
> Sorry, I might have expressed my self wrong, and I now see why.
>
[quoted text clipped - 20 lines]
>> http://www.indiangeek.net
>> http://weblogs.asp.net/sjoseph