Label

The Label control displays a text label. It can be used to label other controls and define shortcut keys.

Design-time Properties for the Label control
PropertyDescription
TextThe current value of the text displayed
TextAlignSets the position of the text within the control rectangle
AutoSizeThe label is resized automatically to fit its current value
UseMenumonicWhen true, the first character preceded by a ampersand (&) will be used as a shortcut. Pressing Alt + Shortcut should select the next control in the tab-order
Run-time properties common to most controls
PropertyAccessTypeDescription
VisibleRead/writeboolHide/show the control
EnabledRead/writeboolEnable/disable the control. When a control is disabled it is visible but shown grayed out and you can't interact with it.
ForeColorRead/writestringAdjust the foreground color
BackColorRead/writestringAdjust the background color
Recent Posts

Leave a Comment

Start typing and press Enter to search