?? frmlockup.frm
字號:
VERSION 5.00
Begin VB.Form FrmLockup
BorderStyle = 1 'Fixed Single
Caption = "鎖定"
ClientHeight = 1260
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
Icon = "FrmLockup.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1260
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton CmdCancel
Caption = "取消"
Height = 375
Left = 3840
TabIndex = 5
Top = 720
Width = 615
End
Begin VB.CommandButton CmdOk
Caption = "確定"
Height = 375
Left = 3840
TabIndex = 4
Top = 120
Width = 615
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1080
PasswordChar = "*"
TabIndex = 1
Top = 720
Width = 2535
End
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Left = 1080
PasswordChar = "*"
TabIndex = 0
Top = 120
Width = 2535
End
Begin VB.Label Label2
Caption = "確認密碼"
Height = 255
Left = 120
TabIndex = 3
Top = 840
Width = 855
End
Begin VB.Label Label1
Caption = "輸入密碼"
Height = 255
Left = 120
TabIndex = 2
Top = 240
Width = 855
End
End
Attribute VB_Name = "FrmLockup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdOK_Click()
If Me.Text1.Text = Me.Text2.Text And Not (Me.Text1 = "") And offpassword = "" Then
offpassword = Me.Text1.Text
Frmoffice.RichTextBox1.Locked = True
Me.Text1.Text = ""
Me.Text2.Text = ""
Me.Hide
Frmoffice.Toolbar2.Buttons(10).Value = tbrPressed
ElseIf Not Me.Text1.Text = Me.Text2.Text Then
MsgBox "密碼不匹配!"
ElseIf Me.Text1.Text = "" Then
MsgBox "密碼不能為空!"
Else
MsgBox "密碼不正確!"
End If
Frmoffice.Enabled = True
End Sub
Private Sub CmdCancel_Click()
Me.Text1.Text = ""
Me.Text2.Text = ""
Me.Hide
Frmoffice.Enabled = True
End Sub
Private Sub Form_Load()
Frmoffice.Enabled = False
End Sub
Private Sub Text1_Change()
Me.Text1.PasswordChar = "*"
End Sub
Private Sub Text2_Change()
Me.Text2.PasswordChar = "*"
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -