📄 form5.frm
字号:
VERSION 5.00
Begin VB.Form Form5
Caption = "Form5"
ClientHeight = 8460
ClientLeft = 60
ClientTop = 405
ClientWidth = 5940
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form5"
ScaleHeight = 8460
ScaleWidth = 5940
StartUpPosition = 2 '屏幕中心
Begin VB.Timer Timer1
Interval = 1000
Left = 360
Top = 240
End
Begin VB.CommandButton Command1
Caption = "交卷"
Height = 495
Left = 2520
TabIndex = 31
Top = 7680
Width = 975
End
Begin VB.Frame Frame5
BorderStyle = 0 'None
Caption = "Frame5"
Height = 495
Left = 360
TabIndex = 26
Top = 6840
Width = 5295
Begin VB.OptionButton Option20
Caption = "D.16"
Height = 255
Left = 4200
TabIndex = 30
Top = 120
Width = 855
End
Begin VB.OptionButton Option19
Caption = "C.11"
Height = 255
Left = 3000
TabIndex = 29
Top = 120
Width = 855
End
Begin VB.OptionButton Option18
Caption = "B.24"
Height = 255
Left = 1680
TabIndex = 28
Top = 120
Width = 975
End
Begin VB.OptionButton Option17
Caption = "A.8"
Height = 255
Left = 240
TabIndex = 27
Top = 120
Width = 735
End
End
Begin VB.Frame Frame4
BorderStyle = 0 'None
Caption = "Frame4"
Height = 615
Left = 240
TabIndex = 20
Top = 5400
Width = 5415
Begin VB.OptionButton Option16
Caption = "D.22"
Height = 375
Left = 4320
TabIndex = 24
Top = 120
Width = 975
End
Begin VB.OptionButton Option15
Caption = "C.32"
Height = 375
Left = 3000
TabIndex = 23
Top = 120
Width = 855
End
Begin VB.OptionButton Option14
Caption = "B.30"
Height = 375
Left = 1800
TabIndex = 22
Top = 120
Width = 855
End
Begin VB.OptionButton Option13
Caption = "A.140"
Height = 375
Left = 360
TabIndex = 21
Top = 120
Width = 975
End
End
Begin VB.OptionButton Option12
Caption = "D.6"
Height = 375
Left = 4560
TabIndex = 18
Top = 4200
Width = 975
End
Begin VB.Frame Frame3
BorderStyle = 0 'None
Caption = "Frame3"
Height = 615
Left = 240
TabIndex = 14
Top = 4080
Width = 5415
Begin VB.OptionButton Option11
Caption = "C.-1"
Height = 375
Left = 3000
TabIndex = 17
Top = 120
Width = 855
End
Begin VB.OptionButton Option10
Caption = "B.-3"
Height = 375
Left = 1680
TabIndex = 16
Top = 120
Width = 975
End
Begin VB.OptionButton Option9
Caption = "A.5"
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 = 2760
Width = 5175
Begin VB.OptionButton Option8
Caption = "D.45"
Height = 375
Left = 4200
TabIndex = 12
Top = 120
Width = 975
End
Begin VB.OptionButton Option7
Caption = "C.43"
Height = 375
Left = 3000
TabIndex = 11
Top = 120
Width = 975
End
Begin VB.OptionButton Option6
Caption = "B.-46"
Height = 375
Left = 1680
TabIndex = 10
Top = 120
Width = 1095
End
Begin VB.OptionButton Option5
Caption = "A.20"
Height = 375
Left = 360
TabIndex = 9
Top = 120
Width = 975
End
End
Begin VB.Frame Frame1
BorderStyle = 0 'None
Caption = "Frame1"
Height = 615
Left = 240
TabIndex = 2
Top = 1440
Width = 5295
Begin VB.OptionButton Option4
Caption = "D.86"
Height = 375
Left = 4200
TabIndex = 6
Top = 120
Width = 975
End
Begin VB.OptionButton Option3
Caption = "C.85"
Height = 375
Left = 2880
TabIndex = 5
Top = 120
Width = 855
End
Begin VB.OptionButton Option2
Caption = "B.84"
Height = 375
Left = 1560
TabIndex = 4
Top = 120
Width = 1095
End
Begin VB.OptionButton Option1
Caption = "A.83"
Height = 375
Left = 360
TabIndex = 3
Top = 120
Width = 855
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 = 495
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、42÷7×6-12÷6+4×3=_?"
Height = 375
Left = 240
TabIndex = 25
Top = 6240
Width = 3375
End
Begin VB.Label Label5
Caption = "4、128÷4-6×2+12=_?"
Height = 255
Left = 240
TabIndex = 19
Top = 4920
Width = 3375
End
Begin VB.Label Label4
Caption = "3、12÷4×3-6+2=_?"
Height = 255
Left = 240
TabIndex = 13
Top = 3600
Width = 4215
End
Begin VB.Label Label3
Caption = "2、23×2-6÷2=_?"
Height = 255
Left = 240
TabIndex = 7
Top = 2280
Width = 2895
End
Begin VB.Label Label2
Caption = "1、42+126÷3=_?"
Height = 255
Left = 240
TabIndex = 1
Top = 960
Width = 2055
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 = &H000000FF&
Height = 375
Left = 2160
TabIndex = 0
Top = 360
Width = 1335
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i, j, k, num 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 Option9.Value = True Then
num = num + 1
End If
If Option15.Value = True Then
num = num + 1
End If
If Option20.Value = True Then
num = num + 1
End If
If num >= 3 Then
flag = MsgBox("你一共答对了" & num & "道题目,恭喜你通过高级!你将得到奖励!", vbOKOnly, "信息")
Unload Form5
Form2.high = False
Form8.Show
Else
MsgBox "你一共答对了" & num & "道题目,你好笨笨哦!", vbOKOnly, "信息"
Unload Me
Form2.high = False
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 Option9.Value = True Then
num = num + 1
End If
If Option15.Value = True Then
num = num + 1
End If
If Option20.Value = True Then
num = num + 1
End If
If num >= 3 Then
flag = MsgBox("考试时间到!你一共答对了" & num & "道题目,恭喜你通过初级!你将得到奖励", vbOKOnly, "信息")
Unload Form5
Form2.high = False
Form8.Show
Else
MsgBox "考试时间到!你一共答对了" & num & "道题目,你好笨笨哦!", vbOKOnly, "信息"
Form2.high = False
Unload Me
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -