Context Menu Keyboard Shortcuts - MDI Forms

Posted on 2006-04-04
Last Modified: 2012-06-27
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!

Question by:mitchvincent
    LVL 96

    Accepted Solution

    When you define the ContextMenu, there should be a ShortCut property for each menu item.


    Author Comment

    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
    LVL 96

    Expert Comment

    by:Bob Learned
    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.


    Author Comment

    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!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now