📄 form3.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
Begin VB.Form Form3
Caption = "基本信息"
ClientHeight = 5010
ClientLeft = 3810
ClientTop = 2655
ClientWidth = 7815
LinkTopic = "Form3"
ScaleHeight = 5010
ScaleWidth = 7815
Begin MSComDlg.CommonDialog cod1
Left = 5640
Top = 3600
_ExtentX = 847
_ExtentY = 847
_Version = 327680
End
Begin VB.CommandButton com1
Caption = "确 定"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2640
TabIndex = 12
Top = 3960
Width = 2175
End
Begin VB.Frame Frame1
Caption = "请选择成绩录入方式"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2415
Left = 3960
TabIndex = 9
Top = 720
Width = 3495
Begin VB.OptionButton Option2
Caption = "文件录入"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 840
TabIndex = 11
Top = 1440
Width = 1335
End
Begin VB.OptionButton Option1
Caption = "手动录入"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 840
TabIndex = 10
Top = 720
Value = -1 'True
Width = 1215
End
End
Begin VB.TextBox Text3
Height = 375
Left = 1320
TabIndex = 8
Top = 2760
Width = 1335
End
Begin VB.TextBox Text2
Height = 375
Left = 1320
TabIndex = 6
Top = 1800
Width = 1815
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1320
TabIndex = 4
Top = 840
Width = 1455
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "学分"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 2640
TabIndex = 7
Top = 2880
Width = 510
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "班"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 2880
TabIndex = 5
Top = 960
Width = 255
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "学 分"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 360
TabIndex = 3
Top = 2880
Width = 915
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "课 程"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 360
TabIndex = 2
Top = 1920
Width = 915
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "班 级"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 360
TabIndex = 1
Top = 960
Width = 915
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请输入以下信息:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 360
TabIndex = 0
Top = 240
Width = 2040
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub com1_Click()
If Text1.Text <> "" And Text2.Text <> "" And Text3.Text <> "" Then
If Option1.Value = True Then
Form3.Visible = False
Form4.Visible = True
Else
cod1.Filter = "文本文件(*.txt)"
cod1.ShowOpen
Form3.Visible = False
Form5.Visible = True
End If
Else
If Text1.Text = "" Then
Form8.Visible = True
Form8.Label1.Caption = "请输入班级号!"
ElseIf Text2.Text = "" Then
Form8.Visible = True
Form8.Label1.Caption = "请输入课程名称!"
ElseIf Text3.Text = "" Then
Form8.Visible = True
Form8.Label1.Caption = "请输入学分!"
End If
End If
End Sub
Private Sub Form_Load()
Form3.Move 1500, 1500
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -