📄 form3.frm
字号:
VERSION 5.00
Begin VB.Form Form3
BackColor = &H00FF8080&
BorderStyle = 0 'None
Caption = "Form3"
ClientHeight = 1635
ClientLeft = 0
ClientTop = 0
ClientWidth = 4680
LinkTopic = "Form3"
ScaleHeight = 1635
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox Text2
Height = 495
Left = 120
TabIndex = 2
Top = 2520
Visible = 0 'False
Width = 1455
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
IMEMode = 3 'DISABLE
Left = 1440
TabIndex = 0
Top = 840
Width = 1455
End
Begin VB.Label Label3
BackColor = &H00FF8080&
Caption = "Please enter your password"
BeginProperty Font
Name = "Matisse ITC"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 495
Left = 0
MouseIcon = "Form3.frx":0000
MousePointer = 99 'Custom
TabIndex = 1
Top = 0
Width = 4455
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
On Error GoTo aa
Text2.Text = GetSetting(App.Title, "setting", "pass", Form2.Text1.Text)
If Text1.Text = Text2.Text Then
Form1.Show
Unload Me
Else
MsgBox "您输入的密码不正确!请重新输入", vbInformation + vbOKOnly, "password wrong"
Text1.Text = ""
End If
Exit Sub
aa:
Form1.Show
Unload Me
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -