Context Menu Keyboard Shortcuts - MDI Forms

Is it possible to assign shortcut keys to context menus in an MDI application? Is KeyPreview needed?

I've tried without success to get this to work so I'm turning to EE!

Thanks!
mitchvincentAsked:
Who is Participating?
 
Bob LearnedCommented:
When you define the ContextMenu, there should be a ShortCut property for each menu item.

Bob
0
 
mitchvincentAuthor Commented:
Right, I've assigned that and when I press the shortcut key - nothing happens. The menu items does do something when I click it, just not when I use the shortcut key
0
 
Bob LearnedCommented:
Interesting thought.  I have never wanted nor needed shortcut keys for context menus, so I didn't know that they didn't work.  I haven't been able to find a workaround, but you might be able to by previewing the key at the form level, and then checking if the context menu is visible.

Bob
0
 
mitchvincentAuthor Commented:
Thanks Bob!

It turns out they were never meant to do that. It's OK, as I'm really trying to add a shortcut key to a Skybound Rebar Toolbar (Skybound is the company). I'll award you the points as the guys at Skybound are writing in a workaround for me as we speak.

Thanks much!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.