O'Reilly logo

Visual Basic® .NET by Example by Bob Donald, Gabriel Oancea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mnemonics and Shortcuts

Mnemonics are used in conjunction with menus to provide better keyboard support with your application. If a user tends to use the keyboard as opposed to the mouse for navigating the user interface, mnemonics allow the user to quickly select a menu item on a menu using the mnemonic key associated with the desired menu item.

The first mnemonic key is pressed together with the Alt key to show a sub menu from the main menu. Then, the subsequent mnemonic keys can be pressed with or without using the Alt key to select a menu item on the sub menu.

You define what the single key is for a menu item by defining the mnemonic character for the menu item. This is done by using the ampersand (&) character within the text of the menu ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required