Programming!
We can now finally get on to actually doing something!
To start off, we are going to create a simple program that asks you for your
name, and then says hello. Although this might not sound much, it should get
you going on the basics of VB.
To begin, ensure that you have the Form Window we described
in the last section. If you can't see it, double click on the text Form1 on
the right hand side of your screen (in the Project Window). Next, take
a look at the left hand toolbar. This displays the controls that you
can currently use in your project (ie what you can add to the form). Click the
icon shown below:
This is known as the Label control. As its name suggests,
it is used to 'label' other controls, and provides a means of adding text to
your form. To add the control to your form, move the mouse to over the Form
and hold down the left mouse button. Keep the button down, and move the mouse
- you will see a rectangle form, and change shape as you move the mouse. This
is showing you where the new control will go. When you are happy with the shape,
let go, and you will see the text 'Label 1' appear.
Once you have placed a control on your form, you are free to move
it around to wherever you want, by simply clicking and dragging. If you want
to change the shape of the control, just like in almost any Office, or graphics
program, simply select it, hold down the mouse over one of the blue boxes that
appear, and drag.