UseMnemonic
This property returns and sets a value that specifies whether an ampersand (&) included in the text of the Caption property of the Label control defines an access key.
Syntax
object.UseMnemonic [= Boolean]
Parameters
- object
- Object expression that evaluates to a Label control.
- Boolean
- Boolean expression that specifies whether the Label control enables an access key. Following are the settings for Boolean:
- True (default)
- Any ampersand appearing in the text of the Caption property causes the character following the ampersand to become an access key. The interface of the Label control does not display the ampersand itself.
- False
- The interface of the Label control displays any ampersand appearing in the text of the Caption property as an ampersand.
Remarks
At run time, you can press ALT+ the access key to move focus to the control that follows the Label control in the tab order. The access key is defined in the Caption property of the Label control.