⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmlockup.frm

📁 这是一套非常好用的软件啊
💻 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 + -