Button.Caption
- Updated2025-07-21
- 1 minute(s) read
Button.Caption
Syntax
Button.Caption
Data Type
Purpose
Specifies the text the control displays.
Remarks
In the caption, include an ampersand ( & ) immediately before the character, if any, you want to designate as an accelerator character. The character displays as underlined. Press <Alt> and the underlined character to move the focus to the control. To include an ampersand character in a caption without creating an accelerator character, include two consecutive ampersands. A single ampersand displays in the caption and no characters display as underlined.
When you connect this control to a manager control, the manager control sets this property automatically.