📄 frmstulogin.frm
字号:
VERSION 5.00
Begin VB.Form frmStuLogin
BackColor = &H008080FF&
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton CmdCancel
Caption = "取消"
Height = 495
Left = 2520
TabIndex = 5
Top = 2640
Width = 1935
End
Begin VB.CommandButton CmdOK
Caption = "确定"
Height = 495
Left = 240
TabIndex = 4
Top = 2640
Width = 1935
End
Begin VB.TextBox TxtID
Height = 495
Left = 2520
TabIndex = 3
Top = 1560
Width = 2055
End
Begin VB.TextBox TxtName
Height = 495
Left = 2520
TabIndex = 2
Top = 240
Width = 2055
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "准考证号"
Height = 495
Left = 240
TabIndex = 1
Top = 1560
Width = 1815
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "姓名"
Height = 495
Left = 240
TabIndex = 0
Top = 240
Width = 1815
End
End
Attribute VB_Name = "FrmStuLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdCancel_Click()
Unload Me
End Sub
Private Sub CmdOK_Click()
If TxtName.Text = "" Then
MsgBox "请输入姓名", vbCritical, "登录失败"
TxtName.SetFocus
Exit Sub
End If
If TxtID.Text = "" Then
MsgBox "请输入口令", vbCritical, "登录失败"
TxtID.SetFocus
Exit Sub
End If
TestUser.Log TxtName, TxtID, student
If Not TestUser.LogFail Then
Unload Me
Else
MsgBox "无法登录, 请重试!", vbCritical, "用户登录"
TxtName.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -