GNVQ Intermediate IT Optional Unit5
 

Tutors Sue Cahill and Colin Duley



GNVQ IT Intermediate - Visual Basic Notes 3
 

Task 1
1)  Set up a new form
2)  Change the background colour property of the form to green
3)  Change the caption property of the form to User Name
4)  Change the name property of the form to Green, using the correct prefix i.e. frmGreen
5)  Add a label and a text box
6)  Change the caption of the label so that it asks the user to enter a name
7)  Change the text property of the text box to blank
8)  Set the backcolours, forecolours, fonts and font sizes of both controls to something different (and readable!)
9)  Add a command button to the form
10)  Change the caption of the button to read - Click Here
11)  Change the name properties of the three new controls, using the naming conventions on Notes 2
12)  From the menu choose Save Project – you will be asked to save the form (.frm) and then the project(.vbp)  Select  drive/folder and give the same meaningful name to both.
 

Task 2
1)  Attach code to the button so that when the button is clicked, the label displays the user’s name.
2)  Add a command button that will end the program when it is clicked.  The only code needed is End
3)  Edit the various font properties of the Label to give large, bright text on a striking background.
4)  Run your program and remove or correct any errors
5)  Print your form
6)  Save the form and project once more


 Top of Page Home Page  Query for Tutor?