Datasheet
P1: GIG
WY006-01 WY006-Sample WY006-Sample-v3.cls January 29, 2004 17:49
Welcome to Visual Basic .NET
form in the Design window and then open Dynamic Help, you will see a list of help topics
relating to forms.
Try It Out Creating a HelloUser Project (cont.)
1.
Change the name of your form to something more indicative of what your application is. Click
on Form1.vb in the Solution Explorer window. Then, in the Properties window, change the File
Name property from Form1.vb to HelloUser.vb and press Enter, as shown in Figure 1-11. When
changing properties you must either hit Enter or click off the property for it to take effect.
Figure 1-11
2. Notice that the form’s file name has also been updated in the Solution Explorer to read
HelloUser.vb.
3. Now click on the form displayed in the Design window; the Properties window will change to
display the form’s Form properties (instead of the File properties, which we have just been
looking at). You will notice that the Properties window is dramatically different. The difference is
the result of two different views of the same file. When the form name is highlighted in the
Solution Explorer window, the physical file properties of the form are displayed. When the form
in the Design window is highlighted, the visual properties and logical properties of the form are
displayed.
The Properties window allows you to easily set a control’s properties. Remember properties are a
particular object’s set of internal data. Properties usually describe appearance or behavior. In
Figure 1-12, you can see that properties are grouped together in categories—Appearance
(Header is not shown), Behavior, Configurations, Data, and Design are the ones shown here.
You can see that under the Appearance category (header not shown), even though we changed the file name
of the form to HelloUser.vb, the text or caption of the form is still Form1. Also notice that the (Name)
property under the Design category is still set to Form1. Unless this is changed any reference in the code to
this form must refer to it as Form1.
4. Right now, the title (Text property) of your form (displayed in the bar at the top) is Form1. This is
not very descriptive, so change it to reflect the purpose of this application. Locate the Text
21