📄 form5.frm
字号:
VERSION 5.00
Begin VB.Form Form5
Caption = "Form5"
ClientHeight = 3360
ClientLeft = 60
ClientTop = 450
ClientWidth = 5955
LinkTopic = "Form5"
LockControls = -1 'True
Picture = "Form5.frx":0000
ScaleHeight = 3360
ScaleWidth = 5955
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3360
TabIndex = 9
Top = 2640
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确认"
Height = 375
Left = 1200
TabIndex = 8
Top = 2640
Width = 1095
End
Begin VB.TextBox Text4
BackColor = &H00EDE4D1&
Height = 375
IMEMode = 3 'DISABLE
Left = 4680
PasswordChar = "*"
TabIndex = 3
Top = 1560
Width = 1095
End
Begin VB.TextBox Text3
BackColor = &H00EDE4D1&
Height = 375
IMEMode = 3 'DISABLE
Left = 4680
PasswordChar = "*"
TabIndex = 2
Top = 360
Width = 1095
End
Begin VB.TextBox Text2
BackColor = &H00EDE4D1&
Height = 375
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 1
Top = 1560
Width = 1095
End
Begin VB.TextBox Text1
BackColor = &H00EDE4D1&
Height = 375
Left = 1680
TabIndex = 0
Top = 360
Width = 1095
End
Begin VB.Label Label4
BackColor = &H00E2BD8F&
Caption = "再次输入新密码"
Height = 375
Left = 3120
TabIndex = 7
Top = 1560
Width = 1215
End
Begin VB.Label Label3
BackColor = &H00E2BD8F&
Caption = "输入新密码"
Height = 255
Left = 3120
TabIndex = 6
Top = 360
Width = 1095
End
Begin VB.Label Label2
BackColor = &H00E2BD8F&
Caption = "旧密码"
Height = 255
Left = 240
TabIndex = 5
Top = 1560
Width = 1095
End
Begin VB.Label Label1
BackColor = &H00E2BD8F&
Caption = "用户名"
Height = 255
Left = 240
TabIndex = 4
Top = 360
Width = 1095
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "11" And Text2.Text = "123" Then
If Text3.Text = Text4.Text Then
MsgBox "密码修改成功", vbOKOnly, "修改密码"
password = Text3.Text
victry = True
Else
MsgBox "输入的密码不正确", vbOKOnly, "重新输入"
Text3.Text = ""
Text4.Text = ""
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
victry = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -