13.5. Labels, TextBoxes and Buttons
Labels provide text information (as well as optional images) and are defined with class Label (a derived class of Control). A Label displays text that the user cannot directly modify. A Label’s text can be changed programmatically by modifying the Label’s Text property. Figure 13.17 lists common Label properties.
Common Label properties | Description |
---|---|
Font | The font of the text on the Label. |
Text | The text on the Label. |
TextAlign | The alignment of the Label’s text on the control—horizontally (left, center or right) and vertically (top, middle or bottom). |
A textbox (class TextBox) is an area in which text can be displayed by a program or the user can type text via the keyboard. A password ...
Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.