📄 form_cjxtgl3.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form Form_CJXTGL3
Caption = "修改密码"
ClientHeight = 5220
ClientLeft = 60
ClientTop = 435
ClientWidth = 6915
LinkTopic = "Form1"
ScaleHeight = 5220
ScaleWidth = 6915
Begin VB.TextBox Text_Name
Height = 375
Left = 2910
TabIndex = 11
Top = 1230
Width = 2445
End
Begin VB.CommandButton Command2
Caption = "取 消"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Left = 3750
TabIndex = 9
Top = 3870
Width = 1185
End
Begin VB.CommandButton Command1
Caption = "确 定"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Left = 1830
TabIndex = 8
Top = 3870
Width = 1245
End
Begin MSComctlLib.ImageList ImageList1
Left = 840
Top = 150
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 1
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Form_CJXTGL3.frx":0000
Key = "退出"
Object.Tag = "Exit"
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 420
Left = 0
TabIndex = 7
Top = 0
Width = 6915
_ExtentX = 12197
_ExtentY = 741
ButtonWidth = 1032
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 1
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Exit"
Object.ToolTipText = "退出"
ImageIndex = 1
EndProperty
EndProperty
End
Begin VB.TextBox Text_rnpwd
Height = 375
IMEMode = 3 'DISABLE
Left = 2910
PasswordChar = "*"
TabIndex = 5
Top = 3240
Width = 2445
End
Begin VB.TextBox Text_npwd
Height = 375
IMEMode = 3 'DISABLE
Left = 2910
PasswordChar = "*"
TabIndex = 4
Top = 2570
Width = 2445
End
Begin VB.TextBox Text_pwd
Height = 375
IMEMode = 3 'DISABLE
Left = 2910
PasswordChar = "*"
TabIndex = 3
Top = 1900
Width = 2445
End
Begin VB.Label Label5
Caption = "用户名:"
Height = 210
Left = 1200
TabIndex = 10
Top = 1320
Width = 1620
End
Begin VB.Label Label4
Caption = "修改管理员密码"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 2400
TabIndex = 6
Top = 660
Width = 2205
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "再输入一次新密码:"
Height = 210
Left = 1140
TabIndex = 2
Top = 3360
Width = 1620
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "新密码:"
Height = 210
Left = 1200
TabIndex = 1
Top = 2685
Width = 1620
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "原密码:"
Height = 210
Left = 1200
TabIndex = 0
Top = 1995
Width = 1620
End
End
Attribute VB_Name = "Form_CJXTGL3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim XM As String
Dim JMM As String
Dim XMM As String
Dim QMM As String
Dim TS1 As String
Dim TS2 As String
Dim TS3 As String
XM = Text_Name.Text
JMM = Text_Pwd.Text
XMM = Text_Npwd.Text
QMM = Text_Rnpwd.Text
If JMM = XMM Then
TS1 = MsgBox("您的新密码和原来密码相同,请重新输入密码!")
ElseIf XMM = QMM Then
Dim str As String
str = "update users set pwd ='" & XMM & "'where username='" & XM & "'"
Cmd.CommandText = str
Cmd.Execute
TS2 = MsgBox("恭喜您!你已经成功修改密码。")
Else
TS3 = MsgBox("两次输入的密码不一样,请重新输入!")
End If
End Sub
Private Sub Command2_Click()
Text_Name.Text = ""
Text_Pwd.Text = ""
Text_Npwd.Text = ""
Text_Rnpwd.Text = ""
End Sub
Private Sub Form_Load()
Height = 6000
Width = 7000
Left = 4700
Top = 1900
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "Exit"
Unload Me
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -