Visual Basic™ Framework

Software Engineering: Simple Payroll Program

[ Previous ] [ Quick Start Index ] [ Next ]

How to draw the form and set the properties

Table of Contents

 

Background Information

A Visual Basic form can be written by designing the form and setting the properties of the objects on the form.

 

Back to top

How does this work?

1.      Enlarge the form size by dragging in the bottom right hand corner.

2.      Change the caption of the form from ‘Form1’ to ‘Payroll’.

TIP

Click anywhere on the form to select it.

NOTE

Activate the Properties window by clicking the Properties icon on the Toolbar or the Properties command from the Windows Menu.

NOTE

From the Properties window, double click the Caption property and type “payroll” in the new caption - you can see the changes at the top of the form.

3.      (Optional) You can choose a background colour for the form by the following step.

TIP

Select the Backcolor property - you will get a colour palette from which you can select the colour for the background of the form.

 

Back to top

What next?

  1. Add controls to create textboxes and labels in the form.
  2. Writing event procedures for the objects.
  3. Complete your program like any other Visual Basic applications by adding a command button to terminate the program.

 

Back to top

 

Last revised: 06 January 2004        14:00

 

If you spot an error, please contact sbho@mmu.edu.my   In addition, please contact me if you find some aspects of this task is not explained clearly so that I can improve this documentation.