📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
BackColor = &H00FFC0C0&
BorderStyle = 0 'None
Caption = "Form2"
ClientHeight = 1785
ClientLeft = 0
ClientTop = 0
ClientWidth = 4605
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form2"
ScaleHeight = 1785
ScaleWidth = 4605
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox Text2
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 = 2
Top = 960
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 = 1
Top = 960
Width = 1455
End
Begin VB.Label Label3
BackColor = &H00FFC0C0&
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 = "Form2.frx":0000
MousePointer = 99 'Custom
TabIndex = 0
Top = 0
Width = 4455
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = Text2.Text Then
MsgBox "您的密码为 " & Text1.Text & " ,请记好您的密码", vbInformation + vbOKOnly, "您的密码"
SaveSetting App.Title, "setting", "pass", Text1.Text
Unload Me
Else
MsgBox "您两次输入的密码不一致,请确认", vbInformation + vbOKOnly, "不一致"
Text1.Visible = True
Text2.Visible = False
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
MsgBox "请再输入一遍", vbInformation + vbOKOnly, "密码确认"
Text1.Visible = False
Text2.Visible = True
Text2.SetFocus
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
If Text1.Text = Text2.Text Then
MsgBox "您的密码为 " & Text1.Text & " ,请记好您的密码", vbInformation + vbOKOnly, "您的密码"
SaveSetting App.Title, "setting", "pass", Text1.Text
Unload Me
Else
MsgBox "您两次输入的密码不一致,请确认", vbInformation + vbOKOnly, "不一致"
Text1.Visible = True
Text2.Visible = False
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -