What is the Text property?
What is the Text property?
Rating:
The Text property of the Control class gets or sets the text associated with a control. Different controls such as TextBox, Button, Form, etc., use this property differently. For example, the string associated with the Text property of a form appears as a heading in its title bar, whereas the string associated with the Text property of a text box is displayed as an input value in the text box itself.
The Text property of a control can also be used to provide an access key for that control. An access key is a keyboard key that activates the associated control. An access key for a control is defined by simply placing an ampersand (&) character before a text character in the Text property of the control. This text character can then be used along with the ALT key to access the control. For example, a Button control with the Text property set to the value E&xit will display the character x in Exit as underlined. This Button control can be accessed using ALT+X.
Rating:
Other articles
- What is Signcode.exe?
- What is the TabIndex property?
- What is object pooling?
- What is the HelpString property?
- What is DTD?
