34,333
edits
Changes
→Assigning Keyboard Shortcuts to Menu Items
Keyboard shortcuts are defined by setting the ''ShortcutKeys'' property of a menu item object. For example, to configure the Exit menu item to use ''Ctrl-X'' select the menu item and click in the value field of the ''ShortcutKeys'' property in the Visual Studio Properties panel. A panel will appear providing the option to select ''Ctrl'', ''Shift'' or ''Alt'' and also the key to be pressed in conjunction. Use this panel to configure the ''Ctrl+X'' key sequence for this menu item.
== Programming Menu Items in Visual Basic ==