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

📄 frmsetpassword.frm

📁 个人记事本
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmSetPassword 
   BackColor       =   &H00CFCBCF&
   Caption         =   "Set  password"
   ClientHeight    =   3855
   ClientLeft      =   4005
   ClientTop       =   2820
   ClientWidth     =   4515
   Icon            =   "frmSetPassword.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   3855
   ScaleWidth      =   4515
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdExit 
      BackColor       =   &H00CFCBCF&
      Cancel          =   -1  'True
      Caption         =   "退出"
      Height          =   375
      Left            =   2760
      Style           =   1  'Graphical
      TabIndex        =   6
      Top             =   2760
      Width           =   855
   End
   Begin VB.CommandButton cmdCancel 
      BackColor       =   &H00CFCBCF&
      Caption         =   "取消"
      Height          =   375
      Left            =   1680
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   2760
      Width           =   855
   End
   Begin VB.CommandButton cmdOK 
      BackColor       =   &H00CFCBCF&
      Caption         =   "确定"
      Default         =   -1  'True
      Height          =   375
      Left            =   600
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   2760
      Width           =   855
   End
   Begin VB.TextBox txtPswdSec 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1560
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   2040
      Width           =   2295
   End
   Begin VB.TextBox txtPassword 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1560
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   1440
      Width           =   2295
   End
   Begin VB.PictureBox PicCaption 
      AutoRedraw      =   -1  'True
      AutoSize        =   -1  'True
      BorderStyle     =   0  'None
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   720
      Left            =   -240
      Picture         =   "frmSetPassword.frx":08CA
      ScaleHeight     =   720
      ScaleWidth      =   9600
      TabIndex        =   8
      TabStop         =   0   'False
      Top             =   3120
      Visible         =   0   'False
      Width           =   9600
      Begin VB.PictureBox PicBorder 
         AutoRedraw      =   -1  'True
         AutoSize        =   -1  'True
         BorderStyle     =   0  'None
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   150
         Left            =   0
         Picture         =   "frmSetPassword.frx":1710E
         ScaleHeight     =   150
         ScaleWidth      =   1050
         TabIndex        =   9
         TabStop         =   0   'False
         Top             =   0
         Visible         =   0   'False
         Width           =   1050
      End
   End
   Begin VB.Image Image1 
      Height          =   1035
      Left            =   240
      Picture         =   "frmSetPassword.frx":17820
      Top             =   180
      Width           =   1050
   End
   Begin VB.Label Label3 
      BackColor       =   &H00CFCBCF&
      Caption         =   "    如果你不想让其他人使用该软件观看你的 Note 文件请输入密码两次,并按确定,以便下次使用时验证。"
      ForeColor       =   &H000000FF&
      Height          =   735
      Left            =   1440
      TabIndex        =   7
      Top             =   240
      Width           =   2535
   End
   Begin VB.Label Label2 
      BackColor       =   &H00CFCBCF&
      Caption         =   "验证密码:"
      Height          =   255
      Left            =   360
      TabIndex        =   3
      Top             =   2100
      Width           =   975
   End
   Begin VB.Label Label1 
      BackColor       =   &H00CFCBCF&
      Caption         =   "请输入密码:"
      Height          =   255
      Left            =   360
      TabIndex        =   0
      Top             =   1500
      Width           =   1095
   End
End
Attribute VB_Name = "frmSetPassword"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private m_cN As cNeoCaption     'for skin

Private Sub Form_Load()
'/////////////////////////////////////////////////////////////
'///           for skin
    Set m_cN = New cNeoCaption
    Skin Me, m_cN
End Sub

Private Sub CmdCancel_Click()
    Me.txtPassword.Text = ""
    Me.txtPswdSec = ""
    Me.txtPassword.SetFocus
End Sub

Private Sub CmdExit_Click()
    Unload Me
End Sub

Private Sub CmdOK_Click()
    If Me.txtPassword.Text = Me.txtPswdSec Then
        '存储密码
        SetKeyValue HKEY_CURRENT_USER, "Software\Note", "Password", Me.txtPassword.Text, REG_SZ
        SetKeyValue HKEY_CURRENT_USER, "Software\Note", "CheckPassWord", 1, REG_SZ
    Else
        MsgBox "两次输入密码不一样,请重新输入", vbInformation + vbOKOnly, "提示信息"
        Exit Sub
    End If
    Unload Me
End Sub

⌨️ 快捷键说明

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