Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

354 Part III Designing the User Interface


Tip You can rename or delete form files by using Solution Explorer. To rename a file,
right-click the file, and then click the Rename command. To remove a file from your project,
right-click the file, and then click the Exclude From Project command. (However, this
command is not available in Visual Basic 2010 Express .) To remove a file from your project
and permanently delete it from your computer, select the file, and then press DELETE.

Now you’ll add some controls to the HelpInfo .vb form.


  1. Use the Label control to create a label at the top of the HelpInfo .vb form. Place the
    label near the left edge of the form, but leave a small indent so that there is room for
    a descriptive label.

  2. Use the TextBox control to create a text box object.

  3. Set the Multiline property for the text box object to True so that you can resize the
    object easily.

  4. Resize the text box object so that it covers most of the form.

  5. Use the Button control to create a button at the bottom of the form.

  6. Set the following properties for the objects on the HelpInfo .vb form:


Object Property Setting
Label1 Text “Operating Instructions for Lucky Seven Slot Machine”
TextBox1 ScrollBars Vertical
Button1 Text “OK”
HelpInfo Text “Help”

The HelpInfo .vb form looks similar to this:

Now you’ll enter a line of program code for the HelpInfo .vb form’s Button1_Click event
procedure.
Free download pdf