📄 loginfrm.frm
字号:
VERSION 5.00
Begin VB.Form loginfrm
Caption = "用户档案管理系统登陆"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Caption = "口令验证"
Height = 2895
Left = 120
TabIndex = 0
Top = 120
Width = 4455
Begin VB.CommandButton cancel
Caption = "取消(&C)"
Height = 495
Left = 2640
TabIndex = 4
Top = 1680
Width = 855
End
Begin VB.CommandButton ok
Caption = "确定(&O)"
Height = 495
Left = 960
TabIndex = 3
Top = 1680
Width = 855
End
Begin VB.TextBox passtext
Height = 375
IMEMode = 3 'DISABLE
Left = 2400
PasswordChar = "*"
TabIndex = 2
Top = 840
Width = 1455
End
Begin VB.Label Label1
Caption = "请输入口令:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 720
TabIndex = 1
Top = 840
Width = 1455
End
End
End
Attribute VB_Name = "loginfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cancel_Click()
Unload loginfrm
End Sub
Private Sub ok_Click()
passtext.SelStart = 0
passtext.SelLength = 6
If passtext.Text = "123" Then
Unload loginfrm
Load users
users.Show
Else: errormode = MsgBox("口令错误,请重新输入!", , "错误警告")
passtext.Text = ""
passtext.SetFocus
End If
End Sub
Private Sub passtext_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then ok.SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -