Visual Basic™ Framework

Software Engineering: Simple Payroll Program

[ Previous ] [ Quick Start Index ] [ Next ]

Initial Steps: How to create and save a project with a new form

Table of Contents

 

Background Information

A form is created automatically when you create a new Visual Basic project.

 

Back to top

How does this work?


ALERT

First of all, remember to record Start Time:  _____________


 

1.      Start Visual Basic.

NOTE

At windows task bar, click ‘Start – Programs – Microsoft Visual Basic 6.0 - Microsoft Visual Basic 6.0’ menu item.

2.      Select ‘Standard EXE’. Click on ‘Open’ button. A blank form called ‘Form1’ will show on the screen.

TIP

Note: If the new form does not appear on the screen, select ‘New Project’ from the File Menu.

3.      At ‘Properties’ window, type “payroll” in the field of (Name). The name represents the object throughout the application.

TIP

Note that you have to rename the form now  -  it is easy to forget, and because Visual Basic always creates new forms called ‘Form1’ and your form may be overwritten by the new form.

4.      Select ‘Save’ payroll form ‘As’ from the File Menu.

5.      Select your drive from the Drives List, and open the directory to save the project.

6.      Type the filename for the form (e.g. ‘payroll.frm’), and select ‘OK’.


ALERT

After finishing the initial steps, record Quarter Completion Time:  _____________


Back to top

What next?

  1. Specify the properties setting for the form
  2. Add controls to create textboxes and labels in the form.
  3. Writing event procedures for the objects.
  4. 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        15: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.