📄 form4.frm
字号:
VERSION 5.00
Begin VB.Form Form4
Caption = "middleForm"
ClientHeight = 8730
ClientLeft = 60
ClientTop = 405
ClientWidth = 5805
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form4"
ScaleHeight = 8730
ScaleWidth = 5805
StartUpPosition = 2 '屏幕中心
Begin VB.Timer Timer1
Interval = 1000
Left = 480
Top = 360
End
Begin VB.CommandButton Command1
Caption = "交卷"
Height = 495
Left = 2280
TabIndex = 31
Top = 7800
Width = 1215
End
Begin VB.Frame Frame5
BorderStyle = 0 'None
Caption = "Frame5"
Height = 615
Left = 360
TabIndex = 26
Top = 6840
Width = 5535
Begin VB.OptionButton Option20
Caption = "D.1233"
Height = 375
Left = 4320
TabIndex = 30
Top = 120
Width = 1095
End
Begin VB.OptionButton Option19
Caption = "C.1333"
Height = 375
Left = 2880
TabIndex = 29
Top = 120
Width = 1215
End
Begin VB.OptionButton Option18
Caption = "B.1313"
Height = 375
Left = 1440
TabIndex = 28
Top = 120
Width = 1095
End
Begin VB.OptionButton Option17
Caption = "A.1323"
Height = 375
Left = 240
TabIndex = 27
Top = 120
Width = 1215
End
End
Begin VB.Frame Frame4
BorderStyle = 0 'None
Caption = "Frame4"
Height = 615
Left = 360
TabIndex = 20
Top = 5520
Width = 5415
Begin VB.OptionButton Option16
Caption = "D.85"
Height = 375
Left = 4320
TabIndex = 24
Top = 120
Width = 855
End
Begin VB.OptionButton Option15
Caption = "C.84"
Height = 375
Left = 2880
TabIndex = 23
Top = 120
Width = 855
End
Begin VB.OptionButton Option14
Caption = "B.83"
Height = 375
Left = 1440
TabIndex = 22
Top = 120
Width = 855
End
Begin VB.OptionButton Option13
Caption = "A.82"
Height = 375
Left = 240
TabIndex = 21
Top = 120
Width = 975
End
End
Begin VB.Frame Frame3
BorderStyle = 0 'None
Caption = "Frame3"
Height = 615
Left = 240
TabIndex = 14
Top = 4200
Width = 5535
Begin VB.OptionButton Option12
Caption = "D.12"
Height = 375
Left = 4320
TabIndex = 18
Top = 120
Width = 855
End
Begin VB.OptionButton Option11
Caption = "C.11"
Height = 375
Left = 2880
TabIndex = 17
Top = 120
Width = 855
End
Begin VB.OptionButton Option10
Caption = "B.10"
Height = 375
Left = 1560
TabIndex = 16
Top = 120
Width = 855
End
Begin VB.OptionButton Option9
Caption = "A.9"
Height = 375
Left = 360
TabIndex = 15
Top = 120
Width = 855
End
End
Begin VB.Frame Frame2
BorderStyle = 0 'None
Caption = "Frame2"
Height = 615
Left = 240
TabIndex = 8
Top = 2880
Width = 5415
Begin VB.OptionButton Option8
Caption = "D.9"
Height = 375
Left = 4200
TabIndex = 12
Top = 120
Width = 735
End
Begin VB.OptionButton Option7
Caption = "C.8"
Height = 375
Left = 2880
TabIndex = 11
Top = 120
Width = 735
End
Begin VB.OptionButton Option6
Caption = "B.7"
Height = 375
Left = 1560
TabIndex = 10
Top = 120
Width = 975
End
Begin VB.OptionButton Option5
Caption = "A.6"
Height = 375
Left = 360
TabIndex = 9
Top = 120
Width = 855
End
End
Begin VB.Frame Frame1
BorderStyle = 0 'None
Caption = "Frame1"
Height = 615
Left = 240
TabIndex = 2
Top = 1560
Width = 5535
Begin VB.OptionButton Option4
Caption = "D.256"
Height = 375
Left = 4200
TabIndex = 6
Top = 120
Width = 975
End
Begin VB.OptionButton Option3
Caption = "C.254"
Height = 375
Left = 2880
TabIndex = 5
Top = 120
Width = 975
End
Begin VB.OptionButton Option2
Caption = "B.252"
Height = 375
Left = 1560
TabIndex = 4
Top = 120
Width = 1095
End
Begin VB.OptionButton Option1
Caption = "A.248"
Height = 375
Left = 360
TabIndex = 3
Top = 120
Width = 1095
End
End
Begin VB.Label Label8
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Left = 5040
TabIndex = 33
Top = 840
Width = 735
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 = 840
Width = 1455
End
Begin VB.Label Label6
Caption = "5、31×43=_?"
Height = 255
Left = 240
TabIndex = 25
Top = 6360
Width = 3015
End
Begin VB.Label Label5
Caption = "4、246÷3=_?"
Height = 255
Left = 240
TabIndex = 19
Top = 5040
Width = 1695
End
Begin VB.Label Label4
Caption = "3、121÷11=_?"
Height = 255
Left = 240
TabIndex = 13
Top = 3720
Width = 2055
End
Begin VB.Label Label3
Caption = "2、32÷4=_?"
Height = 255
Left = 240
TabIndex = 7
Top = 2400
Width = 2175
End
Begin VB.Label Label2
Caption = "1、12×21=_?"
Height = 255
Left = 240
TabIndex = 1
Top = 1080
Width = 1815
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 = &H00FF0000&
Height = 375
Left = 2040
TabIndex = 0
Top = 480
Width = 1335
End
End
Attribute VB_Name = "Form4"
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.middle = False
If Option2.Value = True Then
num = num + 1
End If
If Option7.Value = True Then
num = num + 1
End If
If Option11.Value = True Then
num = num + 1
End If
If Option13.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 Form4
Form2.high = True
Form2.middle = False
Form5.Show
Else
Unload Me
Form2.high = True
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.middle = False
If Option2.Value = True Then
num = num + 1
End If
If Option7.Value = True Then
num = num + 1
End If
If Option11.Value = True Then
num = num + 1
End If
If Option13.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 Form4
Form2.high = True
Form2.middle = False
Form5.Show
Else
Unload Me
Form2.high = True
End If
Else
MsgBox "考试时间到!你一共答对了" & num & "道题目,你好笨笨哦!", vbOKOnly, "信息"
Unload Me
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -