devxlogo

Put an Ampersand (&) in a Menu or Command Button

Put an Ampersand (&) in a Menu or Command Button

When creating menus and command buttons, use the ampersand symbol to create a shortcut key for that option. For example, you might use “&Cancel” for a command button with a “Cancel” button used to cancel an event. To create menu options or command buttons with an ampersand in the caption, set the Caption property (either by coding or through the property settings form), using “&&” to place it in the caption.

devx-admin

Share the Post: