📄 frmsafemodel.frm
字号:
VERSION 5.00
Object = "{E95A2510-F3D1-416D-823B-4F840FE98091}#3.0#0"; "Command.ocx"
Begin VB.Form frmSafeModel
BorderStyle = 4 'Fixed ToolWindow
ClientHeight = 4380
ClientLeft = 15
ClientTop = -105
ClientWidth = 9645
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "frmSafeModel.frx":0000
ScaleHeight = 4380
ScaleWidth = 9645
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin CSCommand.Command cmdOk
Default = -1 'True
Height = 200
Left = 960
TabIndex = 2
Top = 3600
Visible = 0 'False
Width = 615
_ExtentX = 1085
_ExtentY = 344
IconAlign = 0
Icon = "frmSafeModel.frx":27BD9
Caption = "确定"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
FontColor = 16384
End
Begin VB.TextBox txtPassword
BackColor = &H00C0FFC0&
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 375
IMEMode = 3 'DISABLE
Left = 960
PasswordChar = "*"
TabIndex = 0
Top = 3120
Width = 1335
End
Begin CSCommand.Command cmdQuit
Cancel = -1 'True
Height = 195
Left = 1680
TabIndex = 3
Top = 3600
Visible = 0 'False
Width = 615
_ExtentX = 1085
_ExtentY = 344
IconAlign = 0
Icon = "frmSafeModel.frx":27BF5
Caption = "退出"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
FontColor = 16384
DisabledFontColor= 16384
End
Begin VB.Label Label
BackStyle = 0 'Transparent
Caption = "Label1"
Height = 375
Left = 6240
TabIndex = 1
Top = 1920
Width = 3135
End
Begin VB.Menu mnuQ
Caption = "快捷菜单"
Visible = 0 'False
Begin VB.Menu mnuLock
Caption = "解锁"
End
End
End
Attribute VB_Name = "frmSafeModel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdOk_Click()
If txtPassword.Text = mdlCon.userPassowrd Then
Unload Me
Else
MsgBox "密码错误、请重新输入!", vbInformation + vbOKOnly, "保护模式"
Me.txtPassword.SetFocus
Me.txtPassword.SelStart = 0
Me.txtPassword.SelLength = Len(Me.txtPassword.Text)
End If
End Sub
Private Sub cmdQuit_Click()
MsgBox "系统关闭,谢谢使用本软件!"
End
End Sub
Private Sub Form_Load()
Label.Caption = "系统已被" & mdlCon.userName & "锁定!右击开锁!"
txtPassword.Visible = False
cmdOk.Visible = False
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
PopupMenu mnuQ
End If
End Sub
Private Sub mnuLock_Click()
txtPassword.Visible = True
cmdOk.Visible = True
cmdQuit.Visible = True
txtPassword.SetFocus
End Sub
Private Sub mnuQuit_Click()
MsgBox "系统关闭,谢谢使用本软件!"
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -