Game Development Reference
In-Depth Information
general, all controls appear twice; once in a particular category and again in
the All Windows Forms category at the top.
2. Scroll down the Common Controls to find the Label control. Then drag a
Label control onto the form and place it near the upper left corner of the
form. Little helper lines appear and disappear while the control is moving to
aid in the placement of the control.
3. Visual Basic names the Label control Label1 and makes its Text property
Label1 as well. Change the Text property of the label to Character Level.
4. Find the NumericUpDown control in the Toolbox and drag one to the
form. The helper lines make it easy to line up beneath the label we just
5. Change the Name property from NumericUpDown1 to Level.
6. Find the Data group in the Properties window and change the Maximum
property from 100 to 12.
7. Change the Minimum property from 0 to 1.
8. Drag another Label control from the Toolbox and place it below the Level
9. Change the Text property of this Label control to Class.
10. Drag four RadioButton controls from the Toolbox one at a time and
put them below the Class label. Your project should look something like
Figure 1.4.
11. At this point, we have invested some effort into the project, so it's a good
idea to save it. Click the File menu, select Save All, navigate to an appropriate
location, and save the files. There will be two HitPoints folders in the file
system. The parent folder is for the solution and contains the HitPoints.sln
file. The child folder is for the project and contains HitPoints.vbproj. Recall
that a solution can have more than one project; each project in a solution
has its own folder.
12. Click the RadioButton1 control and change its Text property to Mage.
13. Change the Text property of RadioButton2 to Thief.
Search Nedrilad ::

Custom Search