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

📄 frmpassword.frm

📁 个人记事本
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmPassword 
   Caption         =   "Password"
   ClientHeight    =   1590
   ClientLeft      =   3645
   ClientTop       =   2850
   ClientWidth     =   3615
   Icon            =   "frmPassword.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   ScaleHeight     =   1590
   ScaleWidth      =   3615
   StartUpPosition =   2  '屏幕中心
   Begin VB.PictureBox Picture1 
      Height          =   1095
      Left            =   240
      Picture         =   "frmPassword.frx":08CA
      ScaleHeight     =   1035
      ScaleWidth      =   915
      TabIndex        =   2
      Top             =   240
      Width           =   975
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   375
      Left            =   2040
      TabIndex        =   1
      Top             =   960
      Width           =   855
   End
   Begin VB.TextBox txtPassword 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1560
      PasswordChar    =   "*"
      TabIndex        =   0
      Tag             =   "xmas25"
      Top             =   240
      Width           =   1815
   End
End
Attribute VB_Name = "frmPassword"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private PASSWORD As String

Private Sub Form_Load()
    PASSWORD = QueryValue(HKEY_CURRENT_USER, "Software\Note", "Password")
    If Not PASSWORD = "" Then PASSWORD = Left(PASSWORD, Len(PASSWORD) - 1)
End Sub

Private Sub CmdOK_Click()
    If PASSWORD = txtPassword.Text Then
        Initialize
        Unload Me
    Else
        If MsgBox("密码错误", vbExclamation + vbOKOnly, "提示信息") Then
            txtPassword.Text = ""
            txtPassword.SetFocus
        End If
    End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -