0% found this document useful (0 votes)
37 views1 page

Activity 1

Visual Basic 6.0 outlines steps to create a basic project structure and menu system to organize examples and exercises. Key steps include: 1. Creating a new project with a main form, setting properties, and adding a menu with headings like "Quit" and "Introduction". 2. Adding code to the "Quit" menu to exit the application. 3. Creating a new "Welcome" form displayed when "Example1" is selected from the menu, along with code to link the two. 4. Additional forms and examples can then be added and linked together through the menu structure.

Uploaded by

mpuertz2880
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views1 page

Activity 1

Visual Basic 6.0 outlines steps to create a basic project structure and menu system to organize examples and exercises. Key steps include: 1. Creating a new project with a main form, setting properties, and adding a menu with headings like "Quit" and "Introduction". 2. Adding code to the "Quit" menu to exit the application. 3. Creating a new "Welcome" form displayed when "Example1" is selected from the menu, along with code to link the two. 4. Additional forms and examples can then be added and linked together through the menu structure.

Uploaded by

mpuertz2880
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Visual Basic 6.

Activity 1- Organising your first project

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.

1. Open VisualBasic 6.0


2. Use the file menu to open a new project with a blank form. Use the properties window to set:
Main.frm as the form name.
My programs as the caption.
BackColor to White.
BorderStyle to Fixed Single.
WindowState to Maximised.

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

4. Click OK after each menu caption and name are typed.


5. Click on Quit menu heading and enter the following code. This procedure is used toexit from running the project display and
return to the design screens.
Private Sub Quit_Click()
Unload me
End
End Sub

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

15. Save and run application.

You might also like