📄 frm_lock.frm
字号:
VERSION 5.00
Begin VB.Form frm_lock
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 4710
ClientLeft = 5220
ClientTop = 4050
ClientWidth = 6480
Icon = "frm_lock.frx":0000
LinkTopic = "Form1"
Picture = "frm_lock.frx":0442
ScaleHeight = 4710
ScaleWidth = 6480
ShowInTaskbar = 0 'False
Begin VB.TextBox txt_passwd
Height = 375
Left = 1440
TabIndex = 1
Top = 2040
Width = 3615
End
Begin VB.Image Image1
Height = 480
Left = 1560
Picture = "frm_lock.frx":BBF0
Top = 1080
Width = 480
End
Begin VB.Line Line2
BorderColor = &H00FFFFFF&
X1 = 240
X2 = 6240
Y1 = 3615
Y2 = 3615
End
Begin VB.Line Line1
BorderColor = &H00808080&
X1 = 240
X2 = 6240
Y1 = 3600
Y2 = 3600
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "系统锁定!请输入密码:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 2160
TabIndex = 0
Top = 1200
Width = 2640
End
Begin VB.Image img_ok
Height = 615
Left = 4560
Picture = "frm_lock.frx":BEFA
Top = 3720
Width = 1485
End
End
Attribute VB_Name = "frm_lock"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub img_ok_Click()
If Trim(txt_passwd.Text) = "letmein" Then
frm_ordering.Visible = True
Unload Me
ElseIf Trim(txt_passwd.Text) = "" Then
MsgBox "请输入密码!"
txt_passwd.SetFocus
ElseIf Trim(txt_passwd.Text) = "credit" Then
frm_credit.Show
Else
MsgBox "密码错误!"
txt_passwd.SetFocus
End If
End Sub
Private Sub img_ok_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
img_ok.Top = 3740
End Sub
Private Sub img_ok_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
img_ok.Top = 3720
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -