HOWTO: Customize Visual Basic Menus to Use MnemonicsLast reviewed: March 17, 1997Article ID: Q161256 |
The information in this article applies to:
SUMMARYVisual Basic menus are organized to minimize the number of keystrokes it takes to get to the most frequently-used options. Still, some options require several extra keystrokes you may want to eliminate if you use the option regularly. This article describes how to customize the Visual Basic for Windows menu to create a new, top-level menu item with mnemonic key access.
MORE INFORMATIONSome menu operations in Visual Basic for Windows require multiple keystrokes or mouse actions. The best example of this is the Bookmark option. To toggle a bookmark in a code window with the keyboard, the keystrokes are:
ALT+E+B+TTo accomplish this behavior with the mouse, you must do three clicks and open two menus. There are no designated accelerator keys for these operations. This can be changed to a single mnemonic ALT+<KEY> with the customizable menus introduced in Visual Basic for Windows version 5.0. The following example assigns an ALT+B mnemonic to the menu option: Edit Bookmark Toggle.
Step-by-Step Example
REFERENCESCustomize Command (Shortcut Menu), Customize Dialog Box (c) Microsoft Corporation 1996, All Rights Reserved. Contributions by Ted Keith, Microsoft Corporation |
Keywords : kbtool kbusage vb5all vb5howto VBKBEnv kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |