Question ShortCutKey on Menu Item with Sub Menu

brekfist

New member
Joined
Aug 8, 2011
Messages
2
Programming Experience
Beginner
VBquestion.png

How do you create shortcutkeys on menu item with a sub menu?

When added to the properties the ShortcutKeyDisplayString does not appear when running and the shortcut key does not work.

Clicking on File - New opens another form.
 
A ToolStrip with a SplitButton may be a better choice for such functionality. Notice the difference between a split button and a dropdown button, a menu item with dropdown items would correlate to the latter of those.
 
I agree with jmcilhinney. For adding shortcuts: select the menu item you want to add the shortcut to. Go to the Property Box on the right and find the shortcut key property. Click the down arrow and choose the modifiers you desire (ctrl ,shift,alt) and a key (the letter N). Check out the result. If you want to underline the letter that participates in the shortcut, you just add the ampersand symbol like this: &New and the letter N appears underlined.
 
Back
Top