📄 frmchangepwd.frm
字号:
VERSION 5.00
Begin VB.Form frmChangePwd
BorderStyle = 1 'Fixed Single
Caption = "修改机器密码"
ClientHeight = 2610
ClientLeft = 45
ClientTop = 330
ClientWidth = 5055
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2610
ScaleWidth = 5055
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 3600
TabIndex = 7
Top = 1980
Width = 1185
End
Begin VB.CommandButton Command1
Caption = "确认"
Height = 375
Left = 2205
TabIndex = 6
Top = 1980
Width = 1185
End
Begin VB.TextBox txtReNewPwd
Height = 375
IMEMode = 3 'DISABLE
Left = 1440
MaxLength = 12
PasswordChar = "*"
TabIndex = 5
Top = 1305
Width = 3345
End
Begin VB.TextBox txtNewPwd
Height = 375
IMEMode = 3 'DISABLE
Left = 1440
MaxLength = 12
PasswordChar = "*"
TabIndex = 4
Top = 720
Width = 3345
End
Begin VB.TextBox txtOldPwd
Height = 375
IMEMode = 3 'DISABLE
Left = 1440
MaxLength = 12
PasswordChar = "*"
TabIndex = 1
Top = 135
Width = 3345
End
Begin VB.Frame Frame1
Height = 15
Left = 0
TabIndex = 12
Top = 585
Visible = 0 'False
Width = 5055
End
Begin VB.TextBox txtCom
Appearance = 0 'Flat
BackColor = &H80000000&
Enabled = 0 'False
Height = 375
Left = 3690
TabIndex = 11
Top = 135
Visible = 0 'False
Width = 1140
End
Begin VB.TextBox txtMacNo
Appearance = 0 'Flat
BackColor = &H80000000&
Enabled = 0 'False
Height = 375
Left = 1260
TabIndex = 9
Top = 135
Visible = 0 'False
Width = 1140
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "确认新密码:"
Height = 180
Left = 225
TabIndex = 3
Top = 1440
Width = 1080
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "输入新密码:"
Height = 180
Left = 225
TabIndex = 2
Top = 855
Width = 1080
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "输入旧密码:"
Height = 180
Left = 225
TabIndex = 0
Top = 270
Width = 1080
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "当前串口号:"
Height = 180
Left = 2610
TabIndex = 10
Top = 225
Visible = 0 'False
Width = 1080
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "当前机器号:"
Height = 180
Left = 180
TabIndex = 8
Top = 225
Visible = 0 'False
Width = 1080
End
End
Attribute VB_Name = "frmChangePwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Len(txtNewPwd.Text) < 12 Then
MsgBox "密码长度必须是12位,请重新输入!", vbOKOnly, "信息提示"
Exit Sub
End If
If Len(txtOldPwd.Text) < 12 Then
MsgBox "密码长度必须是12位,请重新输入!", vbOKOnly, "信息提示"
Exit Sub
End If
If txtNewPwd.Text <> txtReNewPwd.Text Then
MsgBox "两次密码输入不相同,请重新输入!", vbOKOnly, "信息提示"
Exit Sub
End If
frmMacMain.strNewPwd = txtNewPwd.Text
frmMacMain.strOldPwd = txtOldPwd.Text
Unload Me
End Sub
Public Sub Start()
txtMacNo.Text = strMacNo
txtCom.Text = "COM" & strCom
Me.Show 1
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub txtNewPwd_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 102 Then KeyAscii = 0
End Sub
Private Sub txtOldPwd_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 102 Then KeyAscii = 0
End Sub
Private Sub txtReNewPwd_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 102 Then KeyAscii = 0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -