📄 frmsetpass.frm
字号:
VERSION 5.00
Begin VB.Form frmSetPass
BorderStyle = 3 'Fixed Dialog
Caption = "密码修改"
ClientHeight = 2760
ClientLeft = 45
ClientTop = 330
ClientWidth = 4410
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2760
ScaleWidth = 4410
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.TextBox txtConPass
Height = 375
Left = 1320
TabIndex = 7
Top = 1440
Width = 2415
End
Begin VB.TextBox txtNewPass
Height = 375
Left = 1320
TabIndex = 6
Top = 840
Width = 2415
End
Begin VB.CommandButton cmdCancel
Caption = "取消(&C)"
Height = 375
Left = 2280
TabIndex = 3
Top = 2160
Width = 1335
End
Begin VB.CommandButton cmdOk
Caption = "确定(&O)"
Height = 375
Left = 600
TabIndex = 2
Top = 2160
Width = 1335
End
Begin VB.TextBox txtOldPass
Height = 375
Left = 1320
TabIndex = 1
Top = 240
Width = 2415
End
Begin VB.Label Label3
Caption = "确认新密码"
Height = 255
Left = 120
TabIndex = 5
Top = 1560
Width = 975
End
Begin VB.Label Label2
Caption = "设备新密码"
Height = 255
Left = 120
TabIndex = 4
Top = 960
Width = 1095
End
Begin VB.Label Label1
Caption = "设备旧密码"
Height = 255
Left = 120
TabIndex = 0
Top = 360
Width = 975
End
End
Attribute VB_Name = "frmSetPass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Option Explicit'
Public OkOrNot As Boolean
Private Sub cmdCancel_Click()
OkOrNot = False
Hide
End Sub
Private Sub cmdOk_Click()
OkOrNot = True
Hide
End Sub
Private Sub Form_Load()
OkOrNot = False
cmdOk.Enabled = False
End Sub
Private Sub txtConPass_Change()
If Len(Trim(txtOldPass.Text)) = 0 Then
MsgBox "原设备密码不能为空"
End If
If txtConPass.Text = txtNewPass.Text Then
cmdOk.Enabled = True
Else
cmdOk.Enabled = False
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -