Drawing a control using the Toolbox
- Click the controls icon on the toolbox.
- Move the pointer onto your form. The pointer becomes
a cross hair.
- Place the cross hair where you want the upper-left
corner of the control.
- Click and hold you left mouse button and drag
the mouse, VB draws the control's outline on your
form.
- When you have drawn the control at its proper
location and size, release the mouse button.
|
You can also add a control to the
form by just double clicking the control on the
toolbox. This creates a default-size control located
in the center of the form; then you can move the
control to another location on the form. |
Now, draw the two controls (text box and command
button) required for our application.
Notice that small rectangular boxes called sizing
handles appear at the corners of the currently selected
control; you can use these sizing handles to resize
the control.
Figure 4.1
|