3. Jargon Buster:
(Definition of Terms)
Progressbar is an animated
bar usually used to see if
there is a page that is to be
loaded.
4. Form is the start of the program
when the application is first run.
The Form looks like a blank
application window you see when
you open any Visual Basic
software program.
8. If then Else, an IF block
statement is used to check
whether the logical test is true
or false. It will take the course
of action based on the result
retrieved on the logical test.
13. Form 1 (Log In)
1. Open Visual Basic 6.0
portable and create a new
Standard EXE Project
14. 2. First insert additional control in
the toolbox
2.1 Go to the Project Menu and
then choose Components.
2.2 On the Components dialog
box, choose the controls that are
needed in the program.
15.
16. 2.3 Choose Microsoft Windows
Common Controls 6.0
2.4 Click Apply and then
Close.
2.5 The Toolbox will have
additional controls like the picture
shown below.
19. 3.1 Drag the Form in the size
you want.
3.2 Change its Caption in the
Properties Window.
Change it into “Welcome to
Visual Basic Quiz”
20.
21. 3.3 Click the Picturebox in the
toolbox
3.4 Drag it into the size you
want.
3.5 In the Properties window,
select the picture you want in
you file. Then select it.
22.
23. 3.6 Click Label on the toolbox
3.7 Create a label and then change its
caption into “Name:”
3.8 Create another label and then
change its caption into “Section:”
3.9 Create a text box beside the two
labels.
3.10 Create a command button and
change its caption to “Enter”
24. 4. Save your Form, CTRL +
S, create a folder wherein you
can save your files. In the
filename: name your 1st Form
as “frmlogin” then click
Save.
26. 1.1 Set the backcolor of the Form to
black
1.2 Set the backstyle of label to
transparent and its forecolor to
white
1.3 On the Properties Window of
Timer, set the timer interval into
100.
29. 2. Save your form, CTRL + S,
save your file in the folder that
you’ve made earlier. In the
filename: name your 2nd form
as “frmloading” then click
Save
31. 1.1 Click the PictureBox in
the toolbox
1.2 Drag it until it has the
same size as the form
1.3 Choose your desired
picture, and then select it.
32.
33. 1.4 Create a Frame and then
change its back color to blue
1.5 Change its Caption to
“Question # 1”
34.
35. 1.6 Create a label inside the
frame and change its Caption to
your desired question “This is
considered to be the lowest
level of programming
language”
1.7 Create a text box under it
36. 1.8 Create a command button and
change its Caption into “Next
Question”
2. Save your form, CTRL + S, save
your file in the folder that you’ve
made earlier. In the filename:
name your 3rd form as
“frmquestion1” then click Save.
38. And then repeat steps 1.1 to 1.7 on the
previous form.
1.8 Create a Command button and
change its Caption into “Result”
2. Save your form, CTRL + S, save your
file in the folder that you’ve made earlier.
In the filename: name your 4th form as
“frmquestion2” then click Save.
40. 1.1 Create a Frame
1.2 Inside the frame, add
labels naming: Name,
Section, Correct, and
Number of Items
41. 1.3 Create a Command button
naming “Quit”
1.4 Save your form, CTRL + S,
save your file in the folder that
you’ve made earlier. In the
filename: name your 5th form as
“frmresult” then click Save.
43. Form 1 (Log In)
1. Double click the Enter
command button, write these
codes
44. Private Sub cmdenter_Click()
If txtname.Text = "" Or txtsection.Text = "" Then
MsgBox "You need to fill up the fields needed!",
vbOKOnly + vbInformation, "Test"
Else
frmloading.Show
Me.Hide
frmresult.lblname.Caption = txtname.Text
frmresult.lblsection.Caption = txtsection.Text
End If
End Sub
50. Form 3 (Question 1)
1. Double-click the Next
Question Command
Button and enter these
codes
51. Private Sub Cmd1_Click()
If txtans1.Text = "Machine Language" Then
frmresult.LBLSCORE.Caption = Val(LBLSCORE) +
1
frmquestion2.Show
Me.Hide
ElseIf txtans1.Text <> "" Then
frmquestion2.Show
Me.Hide
End If
End Sub