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.
- 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. - Use the TextBox control to create a text box object.
- Set the Multiline property for the text box object to True so that you can resize the
object easily. - Resize the text box object so that it covers most of the form.
- Use the Button control to create a button at the bottom of the form.
- 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.