📄 form3.frm
字号:
VERSION 5.00
Begin VB.Form Form3
BorderStyle = 1 'Fixed Single
Caption = "juniorForm"
ClientHeight = 9495
ClientLeft = 45
ClientTop = 390
ClientWidth = 5625
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 9495
ScaleWidth = 5625
StartUpPosition = 2 '屏幕中心
WhatsThisHelp = -1 'True
Begin VB.Timer Timer1
Interval = 1000
Left = 360
Top = 240
End
Begin VB.CommandButton Command1
Caption = "交卷"
Height = 495
Left = 2400
TabIndex = 31
Top = 7800
Width = 1095
End
Begin VB.Frame Frame5
BorderStyle = 0 'None
Caption = "Frame5"
Height = 495
Left = 600
TabIndex = 26
Top = 6840
Width = 4935
Begin VB.OptionButton Option20
Caption = "D.16"
Height = 375
Left = 3720
TabIndex = 30
Top = 120
Width = 975
End
Begin VB.OptionButton Option19
Caption = "C.15"
Height = 375
Left = 2400
TabIndex = 29
Top = 120
Width = 855
End
Begin VB.OptionButton Option18
Caption = "B.14"
Height = 375
Left = 1200
TabIndex = 28
Top = 120
Width = 855
End
Begin VB.OptionButton Option17
Caption = "A.13"
Height = 375
Left = 0
TabIndex = 27
Top = 120
Width = 855
End
End
Begin VB.Frame Frame4
BorderStyle = 0 'None
Caption = "Frame4"
Height = 615
Left = 480
TabIndex = 20
Top = 5520
Width = 5055
Begin VB.OptionButton Option16
Caption = "D.9"
Height = 375
Left = 3720
TabIndex = 24
Top = 120
Width = 735
End
Begin VB.OptionButton Option15
Caption = "C.8"
Height = 375
Left = 2520
TabIndex = 23
Top = 120
Width = 735
End
Begin VB.OptionButton Option14
Caption = "B.7"
Height = 375
Left = 1320
TabIndex = 22
Top = 120
Width = 735
End
Begin VB.OptionButton Option13
Caption = "A.6"
Height = 375
Left = 120
TabIndex = 21
Top = 120
Width = 855
End
End
Begin VB.Frame Frame3
BorderStyle = 0 'None
Caption = "Frame3"
Height = 735
Left = 360
TabIndex = 14
Top = 4200
Width = 4935
Begin VB.OptionButton Option12
Caption = "D.18"
Height = 255
Left = 3840
TabIndex = 18
Top = 240
Width = 855
End
Begin VB.OptionButton Option11
Caption = "C.17"
Height = 255
Left = 2520
TabIndex = 17
Top = 240
Width = 855
End
Begin VB.OptionButton Option10
Caption = "B.16"
Height = 255
Left = 1440
TabIndex = 16
Top = 240
Width = 855
End
Begin VB.OptionButton Option9
Caption = "A.15"
Height = 255
Left = 240
TabIndex = 15
Top = 240
Width = 855
End
End
Begin VB.Frame Frame2
BorderStyle = 0 'None
Caption = "Frame2"
Height = 495
Left = 120
TabIndex = 6
Top = 2880
Width = 5535
Begin VB.OptionButton Option8
Caption = "D.8"
Height = 375
Left = 4080
TabIndex = 10
Top = 120
Width = 855
End
Begin VB.OptionButton Option7
Caption = "C.7"
Height = 375
Left = 2760
TabIndex = 9
Top = 120
Width = 735
End
Begin VB.OptionButton Option6
Caption = "B.6"
Height = 375
Left = 1680
TabIndex = 8
Top = 120
Width = 735
End
Begin VB.OptionButton Option5
Caption = "A.5"
Height = 375
Left = 480
TabIndex = 7
Top = 120
Width = 735
End
End
Begin VB.Frame Frame1
BorderStyle = 0 'None
Caption = "Frame1"
Height = 495
Left = 120
TabIndex = 1
Top = 1680
Width = 5535
Begin VB.OptionButton Option4
Caption = "D.7"
Height = 255
Left = 4080
TabIndex = 5
Top = 120
Width = 855
End
Begin VB.OptionButton Option3
Caption = "C.6"
Height = 495
Left = 2760
TabIndex = 4
Top = 0
Width = 735
End
Begin VB.OptionButton Option2
Caption = "B.5"
Height = 495
Left = 1680
TabIndex = 3
Top = 0
Width = 735
End
Begin VB.OptionButton Option1
Caption = "A.4"
Height = 255
Left = 480
TabIndex = 2
Top = 120
Width = 735
End
End
Begin VB.Label Label8
AutoSize = -1 'True
DragMode = 1 'Automatic
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 180
Left = 4920
TabIndex = 33
Top = 720
Width = 690
End
Begin VB.Label Label7
Caption = "距考试结束剩余:"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Left = 3600
TabIndex = 32
Top = 720
Width = 1455
End
Begin VB.Label Label6
Caption = "5、33-18=_?"
Height = 255
Left = 240
TabIndex = 25
Top = 6360
Width = 1695
End
Begin VB.Label Label5
Caption = "4、17-9=_?"
Height = 255
Left = 240
TabIndex = 19
Top = 5040
Width = 1695
End
Begin VB.Label Label4
Caption = "3、12+6=_?"
Height = 255
Left = 240
TabIndex = 13
Top = 3720
Width = 1935
End
Begin VB.Label Label3
Caption = "2、8-2=_?"
Height = 255
Left = 240
TabIndex = 12
Top = 2400
Width = 1815
End
Begin VB.Label Label2
Caption = "1、2+3=_?"
Height = 255
Left = 240
TabIndex = 11
Top = 1080
Width = 1455
End
Begin VB.Label Label1
Caption = "初级试题"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 375
Left = 1920
TabIndex = 0
Top = 360
Width = 1335
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim num As Integer
Dim i, j, k As Integer
Private Sub Command1_Click()
Form2.junior = False
If Option2.Value = True Then
num = num + 1
End If
If Option6.Value = True Then
num = num + 1
End If
If Option12.Value = True Then
num = num + 1
End If
If Option15.Value = True Then
num = num + 1
End If
If Option19.Value = True Then
num = num + 1
End If
If num >= 3 Then
flag = MsgBox("你一共答对了" & num & "道题目,恭喜你通过初级!是否进入下一级?", vbYesNo, "信息")
If flag = 6 Then
Unload Form3
Form2.middle = True
Form4.Show
Else
Form2.junior = False
Form2.middle = True
Unload Me
End If
Else
MsgBox "你一共答对了" & num & "道题目,你好笨笨哦!", vbOKOnly, "信息"
Unload Me
End If
End Sub
Private Sub Form_Load()
Option1.Value = False
Option2.Value = False
Option3.Value = False
Option4.Value = False
Option5.Value = False
Option6.Value = False
Option7.Value = False
Option8.Value = False
Option9.Value = False
Option10.Value = False
Option11.Value = False
Option12.Value = False
Option13.Value = False
Option14.Value = False
Option15.Value = False
Option16.Value = False
Option17.Value = False
Option18.Value = False
Option19.Value = False
Option20.Value = False
End Sub
Private Sub Timer1_Timer()
i = i + 1
j = (120 - i) Mod 60
k = Int((120 - i) / 60)
If j >= 10 Then
Label8.Caption = k & ":" & j
Else
Label8.Caption = k & ":0" & j
End If
If i = 120 Then
Form2.junior = False
If Option2.Value = True Then
num = num + 1
End If
If Option6.Value = True Then
num = num + 1
End If
If Option12.Value = True Then
num = num + 1
End If
If Option15.Value = True Then
num = num + 1
End If
If Option19.Value = True Then
num = num + 1
End If
If num >= 3 Then
flag = MsgBox("考试时间到!你一共答对了" & num & "道题目,恭喜你通过初级!是否进入下一级?", vbYesNo, "信息")
If flag = 6 Then
Unload Form3
Form2.middle = True
Form4.Show
Else
Form2.junior = False
Form2.middle = True
Unload Me
End If
Else
MsgBox "考试时间到!你一共答对了" & num & "道题目,你好笨笨哦!", vbOKOnly, "信息"
Unload Me
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -