Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 413
  • Last Modified:

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!
0
mitchvincent
Asked:
mitchvincent
  • 2
  • 2
1 Solution
 
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now