Microsoft KB Archive/100974

INF: Using Ampersands in Shorcut Keys, Displaying in Labels

PSS ID Number: Q100974 Article last modified on 07-23-1993

1.00 1.10 WINDOWS

= SUMMARY =

The ampersand (&) is a reserved character. You can assign a shortcut key by typing an ampersand in the Caption property of a control, immediately preceding the character that you want to assign to the shortcut key. The character you have assigned will then be underlined. Press ALT+underlined character to move the focus to that control.

= MORE INFORMATION =

To display the ampersand character in the caption, type “A&&B” (without the quotation marks). The double ampersand is displayed as “A&B”. The following are examples of how “A&B” appears on a label: Text Typed Text Displayed ———- ————– “A&B” AB - “A&&B” AB “A&&&B” A&B -

Additional reference words: 1.00 1.10 ampersand label underscore KBCategory: KBSubcategory: FrmrptCtlprp Copyright Microsoft Corporation 1993.