Write Your First Visual Basic Program
Lesson 1
Adding
Controls to the Form
There are many controls you can use with
your program:
Buttons, Text Boxes, Pictures, Scroll Bars and more.
You can
see all these controls in the Toolbox.
To see the Toolbox, Select from the
menu View->Toolbox (Figure 13).
Figure 13
![](images/first-13.gif)
And you will see the Toolbox (Figure 14):
Figure 14
![](images/first-14.gif)
Now lets add a button to your form.
Buttons in Visual
Basic called "Command Buttons".
To add a button, click on the Command Button
icon in the Toolbox (Figure 15).
Figure 15
![](images/first-15.gif)
As results, the Command Button icon will look pressed
(Figure 16).
Figure 16
![](images/first-16.gif)
Now click on the form with the left mouse button, and hold the
button
down while moving the cursor.
You will see a rectangle.
Release the mouse button, and in the place of the rectangle you
will see
a button (Figure 17).
Figure 17
![](images/first-17.gif)