Lesson 2
Lesson 2
Using Labels
Label Properties
OBJECTIVES:
1. Familiarize with the label properties.
2. Create and use label control.
LABELS
hold text that appears on the Form. Labels cannot be edited directly an
explicit code assigning a new caption to the Label should be carried out.
LABEL CONTROL PROPERTIES
Property
Alignment
Description
Determines whether the text appears 0: left-justified, 1: rightjustified, or 2: centered within the Labels boundaries.
AutoSize
BackStyle
BorderStyle
Caption
Enabled
Font
Specifies the font of the text. Clicking this property will invoke
a font dialog box in which you can set the font name, style, and
size.
ForeColor
1|Page
Height
Left
Specifies the number of twips from the Labels left edge to the
Form windows left edge.
MousePointer Determines the image of the mouse cursor when the user
moves the mouse pointer over the Label.
TabIndex
TabStop
ToolTipText
Top
Specifies the number of twips from the Labels top edge to the
Form windows top edge.
Visible
Width
WordWrap
2|Page