📄 frmexamsetup.frm
字号:
VERSION 5.00
Begin VB.Form FrmExamSetup
Caption = "考试设置"
ClientHeight = 4080
ClientLeft = 60
ClientTop = 345
ClientWidth = 4035
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 4080
ScaleWidth = 4035
StartUpPosition = 1 '所有者中心
Begin VB.Frame Frame1
Height = 3075
Left = 45
TabIndex = 3
Top = 495
Width = 3930
Begin VB.TextBox Text5
Alignment = 2 'Center
Height = 285
Left = 1080
TabIndex = 22
Text = "120"
Top = 2250
Width = 780
End
Begin VB.TextBox Text4
Alignment = 2 'Center
Height = 285
Index = 1
Left = 2790
TabIndex = 21
Text = "10"
Top = 1665
Width = 600
End
Begin VB.TextBox Text4
Alignment = 2 'Center
Height = 285
Index = 0
Left = 990
TabIndex = 20
Text = "5"
Top = 1665
Width = 555
End
Begin VB.TextBox Text3
Alignment = 2 'Center
Height = 285
Index = 1
Left = 2790
TabIndex = 17
Text = "2"
Top = 1215
Width = 600
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Height = 270
Index = 0
Left = 990
TabIndex = 8
Text = "10"
Top = 360
Width = 555
End
Begin VB.TextBox Text2
Alignment = 2 'Center
Height = 285
Index = 0
Left = 990
TabIndex = 7
Text = "30"
Top = 765
Width = 555
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Height = 270
Index = 1
Left = 2790
TabIndex = 6
Text = "1"
Top = 360
Width = 600
End
Begin VB.TextBox Text2
Alignment = 2 'Center
Height = 270
Index = 1
Left = 2790
TabIndex = 5
Text = "1"
Top = 765
Width = 600
End
Begin VB.TextBox Text3
Alignment = 2 'Center
Height = 285
Index = 0
Left = 990
TabIndex = 4
Text = "5"
Top = 1215
Width = 555
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "操作题:"
Height = 180
Left = 270
TabIndex = 19
Top = 1710
Width = 720
End
Begin VB.Label Label10
Caption = "每题分值:"
Height = 285
Left = 1845
TabIndex = 18
Top = 1710
Width = 960
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "多择题:"
Height = 180
Left = 270
TabIndex = 16
Top = 1260
Width = 720
End
Begin VB.Label Label8
Caption = "每题分值:"
Height = 285
Left = 1845
TabIndex = 15
Top = 1260
Width = 960
End
Begin VB.Label Label1
Caption = "填空题:"
Height = 285
Left = 270
TabIndex = 14
Top = 405
Width = 735
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "单择题:"
Height = 180
Left = 270
TabIndex = 13
Top = 810
Width = 720
End
Begin VB.Label Label3
Caption = "每题分值:"
Height = 240
Left = 1845
TabIndex = 12
Top = 405
Width = 915
End
Begin VB.Label Label4
Caption = "每题分值:"
Height = 285
Left = 1845
TabIndex = 11
Top = 810
Width = 960
End
Begin VB.Label Label5
Caption = "考试时间:"
Height = 375
Left = 135
TabIndex = 10
Top = 2295
Width = 1365
End
Begin VB.Label Label6
Caption = "分钟"
Height = 285
Left = 1980
TabIndex = 9
Top = 2295
Width = 825
End
End
Begin VB.CommandButton Command1
Caption = "取消"
Height = 330
Index = 1
Left = 2880
TabIndex = 2
Top = 3645
Width = 1050
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 330
Index = 0
Left = 1755
TabIndex = 1
Top = 3645
Width = 1050
End
Begin VB.Label Label7
Caption = "请合理安排考试!!!!!"
Height = 330
Left = 90
TabIndex = 0
Top = 135
Width = 3885
End
End
Attribute VB_Name = "FrmExamSetup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click(Index As Integer)
Select Case Index
Case 0
If (Val(Text1(0)) * Val(Text1(1)) + Val(Text2(0)) * Val(Text2(1)) + Val(Text3(0)) * Val(Text3(1)) _
+ Val(Text4(0)) * Val(Text4(1))) <> 100 Then
MsgBox "请合理出题,题目分值必须满100分", vbInformation, "错误操作"
Else
WritePrivateProfileString "FillSubject", "Count", Text1(0).Text, INIFilePath & "ExamSetup.ini"
WritePrivateProfileString "FillSubject", "Value", Text1(1).Text, INIFilePath & "ExamSetup.ini"
WritePrivateProfileString "Select", "Count", Text2(0).Text, INIFilePath & "ExamSetup.ini"
WritePrivateProfileString "Select", "Value", Text2(1).Text, INIFilePath & "ExamSetup.ini"
WritePrivateProfileString "MultiSelect", "Count", Text3(0).Text, INIFilePath & "ExamSetup.ini"
WritePrivateProfileString "MultiSelect", "Value", Text3(1).Text, INIFilePath & "ExamSetup.ini"
WritePrivateProfileString "Operation", "Count", Text4(0).Text, INIFilePath & "ExamSetup.ini"
WritePrivateProfileString "Operation", "Value", Text4(1).Text, INIFilePath & "ExamSetup.ini"
WritePrivateProfileString "Time", "Value", Text5.Text, INIFilePath & "ExamSetup.ini"
Unload Me
End If
Case 1
Unload Me
End Select
End Sub
Private Sub Form_Load()
Text1(0).Text = FillSubject
Text1(1).Text = FillSubjectValue
Text2(0).Text = SelectSubject
Text2(1).Text = SelectSubjectValue
Text3(0).Text = MultiSelectSubject
Text3(1).Text = MultiSelectSubjectValue
Text4(0).Text = OperationSubject
Text4(1).Text = OperationSubjectValue
Text5 = ExamTime
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -