Very Busy (VB) Mail Order
Start Visual Basic and Open a New Standard .EXE
Do the housekeeping required to setup your project. This includes:
- Creating a New Project Directory
- Saving the Form
- Saving the Project File
Refer to the Guidelines for this procedure and for the required naming conventions.
Reviewing the problem reveals that the user interface will need 7 labels and 6 command buttons.
![]() |
Command Buttons
Labels
4 Labels keep the default names as they will not be referenced by the program |
||||||||||||||||
The Event Handlers for the 4 Department Command Buttons will assign values to the Caption Property of the 3 labels as follows:
lblDept.Caption = "Customer Relations"
lblContact.Caption = "Tricia Mills"
lblPhone.Caption = "500-1111"
The Event Handler the Print button will be coded as using the PrintForm method of the form. In the Event Handler type:
frmMain. That's "frmMain dot"
and let the "Auto Fill In" feature assist you in building the instruction.
Please comment out this instruction during the lab. Chaos will reign if everyone sends a print of their form to the printer during the lab session. You can do this on your own, or later in lab if you want to see this work. Trust Me, it will!
The Exit Command button will "End" the program as in the first example
Test the program and please let me know when you have completed the wor. You can demo it for me and if all works as advertised, I will check you off as done.
A couple of things to double check:
This completes the first lab