Game Development Reference
In-Depth Information
If the focus is on a form, you will see five buttons. The third and fourth buttons
control what is displayed. The Properties window usually shows properties,
which you select with the third button. Clicking the fourth button, marked with a
tiny lightning bolt, shows events and event handlers. These two buttons are not
visible in Figure 1.2 because the focus is on the file Form1.vb in the Solution
Explorer. The form has one set of properties, and the file the form is stored in has
a different set. These buttons will show up shortly when we change the properties
of the form itself.
The last button in the row is always the Property Pages button. We will not need to use it.
Figure 1.2 shows all the files with room for more but only part of the Properties
window. You can adjust the height of the Properties window by clicking and
dragging the area between the Solution Explorer and the Properties window. This
is just one way in which Visual Basic is extremely adjustable; another is the way
you can choose to hide or display various window elements. For example, note
the pushpin icons. The Solution Explorer and Properties window are pinned in
Figure 1.2, so you can see their contents. To the left of the editing pane is the
Toolbox; click it, and it slides open. Clicking the Toolbox's pushpin will pin it
open. Clicking outside the Toolbox when it is unpinned slides it back out of the
Visual Basic created a default form and named it Form1. This is typical of Visual
Basic, so one of the first tasks when creating a new form or adding a control to a
form is to give the new object a more useful name than the default. Visual Basic
also gives default values to other properties, some of which we will also change.
1. Click anywhere on Form1 in the editing pane.
2. Look for the Properties window on the right side. Here you will find the
names of all the properties of the current object and their values. Note that
the row of buttons went from three buttons to five.
3. Change the Text property from Form1 to Hit Points Calculator; this text
will be displayed in the title bar of the form. The value Form1 is bold and
easy to find; values that have been changed from the default are marked
in bold, as are Text and Name properties. Simply click where it says
Form1 and type over it. If you are having trouble finding the property, it
Search Nedrilad ::

Custom Search