frmpassword.frm
来自「个人记事本」· FRM 代码 · 共 67 行
FRM
67 行
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 + =
减小字号Ctrl + -
显示快捷键?