📄 frmpassword.frm
字号:
VERSION 5.00
Begin VB.Form frmpassword
BackColor = &H00FF8080&
BorderStyle = 3 'Fixed Dialog
Caption = "密码"
ClientHeight = 1740
ClientLeft = 45
ClientTop = 435
ClientWidth = 3450
Icon = "frmpassword.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 1740
ScaleWidth = 3450
ShowInTaskbar = 0 'False
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 375
Left = 2040
Picture = "frmpassword.frx":030A
TabIndex = 3
Top = 1200
Width = 975
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 375
Left = 360
Picture = "frmpassword.frx":CCF8
TabIndex = 2
Top = 1200
Width = 1095
End
Begin VB.TextBox Text2
BackColor = &H00FF8080&
Height = 270
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 1
Text = "Text2"
Top = 720
Width = 1815
End
Begin VB.TextBox Text1
BackColor = &H00FF8080&
Height = 270
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 0
Text = "Text1"
Top = 240
Width = 1815
End
Begin VB.Label Label2
Caption = "Label2"
Height = 255
Left = 240
TabIndex = 5
Top = 720
Width = 855
End
Begin VB.Label Label1
Caption = "Label1"
Height = 255
Left = 240
TabIndex = 4
Top = 240
Width = 855
End
End
Attribute VB_Name = "frmpassword"
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
tishi = MsgBox("两次输入的密码不一致,请重新输入!", vbOKOnly, "错误")
Text1.Text = ""
Text2.Text = ""
ElseIf Text1.Text = "" Then
tishi = MsgBox("密码不能为空!", vbOKOnly, "错误")
Me.Show
Else
frmusertype.Show
psw = Text1.Text
Unload Me
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Me.Hide
End Sub
Private Sub Form_Load()
' askn.ApplySkin Me.hWnd
Me.Left = 6000
Me.Top = 3900
Label1.Caption = "输入密码"
Label2.Caption = "确认密码"
Command1.Caption = "确定"
Command2.Caption = "取消"
Text1.Text = ""
Text2.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -