forked from QiuBiuBiu/NEIE-Assistant
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathForm3.frm
159 lines (142 loc) · 3.85 KB
/
Form3.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
VERSION 5.00
Begin VB.Form Form3
BorderStyle = 3 'Fixed Dialog
Caption = "设置"
ClientHeight = 1668
ClientLeft = 36
ClientTop = 360
ClientWidth = 2964
Icon = "Form3.frx":0000
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1668
ScaleWidth = 2964
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "关于"
Height = 372
Left = 120
TabIndex = 9
Top = 1200
Width = 852
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 372
Left = 1920
TabIndex = 8
Top = 1200
Width = 972
End
Begin VB.TextBox Text3
Height = 264
Left = 2040
TabIndex = 6
Text = "Text3"
Top = 720
Width = 612
End
Begin VB.TextBox Text2
Height = 264
Left = 1080
TabIndex = 4
Text = "Text2"
Top = 720
Width = 612
End
Begin VB.TextBox Text1
Height = 264
Left = 720
TabIndex = 1
Text = "Text1"
Top = 240
Width = 612
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "秒"
Height = 180
Left = 2760
TabIndex = 7
Top = 720
Width = 180
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "-"
Height = 180
Left = 1800
TabIndex = 5
Top = 720
Width = 96
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "做题时间:"
Height = 180
Left = 120
TabIndex = 3
Top = 720
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "分以上"
Height = 180
Left = 1440
TabIndex = 2
Top = 240
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "分数:"
Height = 180
Left = 120
TabIndex = 0
Top = 240
Width = 540
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error Resume Next
If Int(Text1.Text) <= 70 Then
MsgBox "分数必须大于70分,已自动设置为71分"
mnScore = 71
ElseIf Int(Text1.Text) > 100 Then
MsgBox "分数必须不超过100分,已自动设置为100分"
mnScore = 100
Else
mnScore = Int(Text1.Text)
End If
Text1.Text = mnScore
If Int(Text2.Text) < 60 Then
MsgBox "做题最小时间必须不小于60秒,已自动设置为60秒"
mnTime = 60
Else
mnTime = Int(Text2.Text)
End If
Text2.Text = mnTime
If Int(Text3.Text) <= mnTime Then
mxTime = mnTime
Else
mxTime = Int(Text3.Text)
End If
Text3.Text = mxTime
Unload Form3
End Sub
Private Sub Command2_Click()
MsgBox "欢迎使用。", , "消息"
End Sub
Private Sub Form_Load()
Text1.Text = mnScore
Text2.Text = mnTime
Text3.Text = mxTime
End Sub