Activity 1
Activity 1
The first step is to create a project template within VB, to organise and store your work. This will consist of a
menu structure with headings that will let you access the many exercises and examples you complete.
3. Find the Menu icon and click on it to select it. Enter the following menu headings:
Quit
Introduction with indented subheadings of
Example1
Example2
6. Use the <F5> function key to run the application to verify that the Menu structure is correct and that the Quit procedure is
free from error.
7. Use the File menu to save your work as Main.frm and (your intitials)Project1.vbp
8. Use the file menu to open a new blank form (or the properties window)
9. Set the following form properties:
form name as Welcome
caption to Example1
BackColor to White
BorderStyle to Fixed Single
WindowState to Maximised
10. Click on the Example 1 main menu heading and enter the following code:
Private Sub Example1_Click()
Welcome.Show
End Sub
11. Save your work and run <F5> to ensure that it is free of errors.
12. You can add pictures and labels on the form. Just go toolbox and find image icon and the label icon. Change their properties
of your preference.
13. Add command Button. Change its caption to RETURN.
14. Then double-click the button and add the following line of code after the Command1_Click() procedure.
– Unload Welcome