Our programs might not be very elaborate yet, but at least we can make them look good!
Labels and pictures on your forms not only make your program look good, but they can also make it easier to use and understand. For example a clothing shop might want pictures of items for sale on a user interface from which the customer makes selections.
Adding Labels
Start a new project.
Click on the label tool
and then click and drag out the label on your form.
Change the following properties of your new label:
- Name: lblTitle
- Caption: A Silly Program
- Font: Select any suitable font and size
- Forecolor: Choose a colour
- Alignment: Centre
- Show Me How
Some other useful Label Properties:
| Borderstyle | 0 = no border 1 = Single line border |
| Autosize | True = label will automatically get wider to fit text False = if text doesn't fit, it will be chopped off |
| Wordwrap | True = label will automatically get more lines to fit text False = text may be chopped off at the bottom if there is a lot of text |
![]() |
|
Adding Pictures
We will add two pictures using image boxes
Note: You can also add pictures using picture boxes, but if you do, you can NEVER change the size of bitmap or icon graphics.
First we will need images to use:
Choose two of the following, right click on them and save each to your home drive (or you can use images you have already saved):
![]() |
![]() |
![]() |
Draw an image box on your form
Set the following properties:
- Name = imgDog (if you are using the dog)
- Stretch = True (Note: Stretch adjusts the size of the picture to fit the box)
- Picture = Click on the picture file you want to use
- Visible = False (We will make them appear later)
![]() |
|
![]() |
|
![]() |
|
Adding Lines and Other Shapes
Adding lines and shapes can add visual appeal to your interface and make your program more attractive to the user.
To add a line:
- Click the line tool

- Draw a line on your form
- Adjust some of its properties until it is how you want it
To add a shape:
- Click the shape tool

- Drag out a shape on your form
- Adjust its properties (don't forget the Shape property) until it looks how you want it.
To set a shape's shape property from within the code:
- 0 = rectangle
- 1 = square
- 2 = oval
- 3 = circle
- 4 = rounded rectangle
- 5 = rounded square
So shape1.shape = 3 would change the shape to a circle,
shape1.shape = 1 would change the shape to a square etc
![]() |
|









