Properties
Now that you have added the Label to your form, and selected
it, you can change its properties using the properties window:
Figure 1 - The Properties Window
This window lists lots of different properties that you can use
to change how a control looks and behaves. For example, the Appearance property
sets whether a control should look 'Flat' or 3D. For the moment, you don't need
to worry about these, but you can come back later and work out what they do.
If at any stage you're not sure, simply press F1, and the VB help file will
appear.
First, we need to give the control a meaningful name. This is
so that when we start writing code, we can refer to this control, and remember
which it is. The current name of 'Label1' is not particularly helpful. To change
the name, we modify the text next to the (Name) box at the top of the properties
list. In keeping with Visual Basic convention, the name of Label controls usually
start with lbl, so lets call this control lblPrompt.
To change the text that appears for the label, you change the
Caption property in the same way. We can change the caption of this label
to 'Please enter your name'. Once you have done that, you might find that if
you look back to the form, you can't see all of the text. If this is the case,
select the control, and resize it so that you can.