📄 frmkey.frm
字号:
VERSION 5.00
Begin VB.Form FrmKey
BorderStyle = 1 'Fixed Single
Caption = "解锁"
ClientHeight = 1245
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
Icon = "FrmKey.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1245
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton CmdCancel
Caption = "取消"
Height = 375
Left = 3720
TabIndex = 3
Top = 720
Width = 615
End
Begin VB.CommandButton CmdOK
Caption = "确定"
Height = 375
Left = 3720
TabIndex = 2
Top = 240
Width = 615
End
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Left = 480
PasswordChar = "*"
TabIndex = 0
Top = 600
Width = 2775
End
Begin VB.Label Label1
Caption = "输入密码"
Height = 255
Left = 480
TabIndex = 1
Top = 240
Width = 855
End
End
Attribute VB_Name = "FrmKey"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdOK_Click()
If Me.Text1.Text = offpassword Then
Frmoffice.RichTextBox1.Locked = False
offpassword = ""
Me.Text1.Text = ""
Me.Hide
Frmoffice.Toolbar2.Buttons(9).Value = tbrPressed
Else
MsgBox "密码不正确!"
End If
End Sub
Private Sub CmdCancel_Click()
Me.Text1.Text = ""
Me.Hide
End Sub
Private Sub Text1_Change()
Me.Text1.PasswordChar = "*"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -