📄 frm_changepwd.frm
字号:
VERSION 5.00
Begin VB.Form Frm_ChangePwd
Caption = "更改密码"
ClientHeight = 3000
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3000
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton CmdCancel
Cancel = -1 'True
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2760
TabIndex = 7
Top = 2400
Width = 1335
End
Begin VB.CommandButton CmdOk
Caption = "确定"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 480
TabIndex = 6
Top = 2400
Width = 1335
End
Begin VB.TextBox TxtReNewPwd
Appearance = 0 'Flat
BeginProperty Font
Name = "黑体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
IMEMode = 3 'DISABLE
Left = 2160
MaxLength = 20
PasswordChar = "*"
TabIndex = 5
Top = 1680
Width = 2415
End
Begin VB.TextBox TxtNewPwd
Appearance = 0 'Flat
BeginProperty Font
Name = "黑体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
IMEMode = 3 'DISABLE
Left = 2160
MaxLength = 20
PasswordChar = "*"
TabIndex = 3
Top = 960
Width = 2415
End
Begin VB.TextBox TxtOldPwd
Appearance = 0 'Flat
BeginProperty Font
Name = "黑体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
IMEMode = 3 'DISABLE
Left = 2160
MaxLength = 20
PasswordChar = "*"
TabIndex = 1
Top = 240
Width = 2415
End
Begin VB.Label Label3
Caption = "请确认新密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 4
Top = 1800
Width = 1815
End
Begin VB.Label Label2
Caption = "请输入新密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 2
Top = 1080
Width = 1815
End
Begin VB.Label Label1
Caption = "请输入旧密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 0
Top = 360
Width = 1815
End
End
Attribute VB_Name = "Frm_ChangePwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdCancel_Click()
Unload Me
End Sub
Private Sub CmdOk_Click()
If TxtOldPwd.Text = "" Then
MsgBox "请输入旧密码!", vbExclamation, Me.Caption
Else
If TxtNewPwd.Text = "" Or TxtReNewPwd.Text = "" Then
MsgBox "请输入新密码!", vbExclamation, Me.Caption
Else
If TxtNewPwd.Text <> TxtReNewPwd.Text Then
MsgBox "两次输入的新密码不同!", vbExclamation, Me.Caption
Else
Dim dat As String
dat = "2" & "/" & USERNAME & "/" & TxtOldPwd.Text & "/" & TxtNewPwd.Text
'Winsock1.Connect
Frm_Lock.Winsock1.SendData dat '向服务器发送数据
Unload Me
End If
End If
End If
End Sub
Private Sub TxtNewPwd_KeyPress(KeyAscii As Integer)
If KeyAscii <> 8 And KeyAscii < 32 Or KeyAscii > 126 Then
Beep
KeyAscii = 0
End If
End Sub
Private Sub TxtOldPwd_KeyPress(KeyAscii As Integer)
If KeyAscii <> 8 And KeyAscii < 32 Or KeyAscii > 126 Then
Beep
KeyAscii = 0
End If
End Sub
Private Sub TxtReNewPwd_KeyPress(KeyAscii As Integer)
If KeyAscii <> 8 And KeyAscii < 32 Or KeyAscii > 126 Then
Beep
KeyAscii = 0
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -