📄 xiugaimima.frm
字号:
VERSION 5.00
Begin VB.Form XiuGaimima
Caption = "修改密码"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
LockControls = -1 'True
MDIChild = -1 'True
ScaleHeight = 3090
ScaleWidth = 4680
Begin VB.CommandButton quxiao
Caption = "取 消"
Height = 375
Left = 2760
TabIndex = 9
Top = 2640
Width = 975
End
Begin VB.CommandButton queding
Caption = "确 定"
Height = 375
Left = 960
TabIndex = 8
Top = 2640
Width = 975
End
Begin VB.Frame Frame1
Height = 1695
Left = 120
TabIndex = 1
Top = 840
Width = 4455
Begin VB.TextBox QDmima
Height = 270
Left = 1920
TabIndex = 7
Top = 1200
Width = 1695
End
Begin VB.TextBox Xmima
Height = 270
Left = 1920
TabIndex = 5
Top = 760
Width = 1695
End
Begin VB.TextBox Jmima
Height = 270
Left = 1920
TabIndex = 3
Top = 300
Width = 1695
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "确定密码:"
Height = 180
Left = 840
TabIndex = 6
Top = 1275
Width = 900
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "新密码:"
Height = 180
Left = 960
TabIndex = 4
Top = 840
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "旧密码:"
Height = 180
Left = 960
TabIndex = 2
Top = 360
Width = 720
End
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "公 司 人 事 管 理 系 统"
BeginProperty Font
Name = "华文彩云"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C000&
Height = 450
Left = 240
TabIndex = 0
Top = 240
Width = 4215
End
End
Attribute VB_Name = "XiuGaimima"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Me.Height = 3600
Me.Width = 4800
If XGmima.State = adStateOpen Then XGmima.Close
XGmima.Open "select * from userDL where ID='" & DLyonghuM & "'", MySQL, adOpenKeyset, adLockPessimistic
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set XGmima = Nothing
End Sub
Private Sub queding_Click()
If Xmima.Text = "" Or Jmima.Text = "" Then
MsgBox "新旧密码均不能为空,请仔细填写!", , "温馨提示"
Else
If Xmima.Text <> QDmima.Text Then
MsgBox "新密码两次输入不相同,请仔细检查密码!", , "温馨提示"
QDmima.SetFocus
QDmima.SelStart = 0
QDmima.SelLength = Len(QDmima.Text)
Else
If Jmima.Text <> Trim(XGmima.Fields(1)) Then
MsgBox "与原密码不符!请重新仔细输入!", , "温馨提示"
Jmima.SetFocus
Jmima.SelStart = 0
Jmima.SelLength = Len(Jmima.Text)
Else
QD = MsgBox(" 确定修改么?", 64 + 4, "温馨提示")
If QD = 6 Then
XGmima.Fields(1) = Trim(Xmima.Text)
XGmima.Update
MsgBox "修改密码成功!" + vbCrLf + "新密码:" + Xmima.Text, , "温馨提示"
Else
Xmima.Text = ""
Jmima.Text = ""
QDmima.Text = ""
Jmima.SetFocus
End If
End If
End If
End If
End Sub
Private Sub quxiao_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -