📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "学籍管理"
ClientHeight = 3885
ClientLeft = 4725
ClientTop = 3540
ClientWidth = 5925
BeginProperty Font
Name = "隶书"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 3885
ScaleWidth = 5925
Begin VB.CommandButton Command3
Caption = "Command3"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3960
TabIndex = 7
Top = 2400
Width = 975
End
Begin VB.CommandButton Command2
Caption = "Command2"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2160
TabIndex = 6
Top = 2400
Width = 975
End
Begin VB.CommandButton Command1
Caption = "Command1"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 480
TabIndex = 5
Top = 2400
Width = 975
End
Begin VB.Frame Frame1
Caption = "Frame1"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1815
Left = 480
TabIndex = 0
Top = 360
Width = 4455
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
IMEMode = 3 'DISABLE
Left = 1440
PasswordChar = "*"
TabIndex = 4
Top = 1080
Width = 1935
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 1440
TabIndex = 3
Text = "Text1"
Top = 420
Width = 1935
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "Label2"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 240
TabIndex = 2
Top = 1200
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Label1"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 240
TabIndex = 1
Top = 480
Width = 900
End
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "用户名为“abc”,密码为“123”"
BeginProperty Font
Name = "隶书"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 300
Left = 480
TabIndex = 8
Top = 3240
Width = 4500
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1 = "abc" And Text2 = "123" Then
Form2.Show
Form1.Hide
Else
MsgBox "密码不正确或用户名不正确,请重新输入", 1 + 16, "注意"
End If
End Sub
Private Sub Command2_Click()
Text1 = ""
Text2 = ""
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub Form_Load()
Frame1.Caption = "密码检测"
Label1 = "用户名"
Label2 = "密码"
Text1 = ""
Text2 = ""
Command1.Caption = "确定"
Command2.Caption = "重填"
Command3.Caption = "退出"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -