📄 xgmm.frm
字号:
VERSION 5.00
Begin VB.Form 修改密码
Caption = "系统管理-修改密码"
ClientHeight = 4170
ClientLeft = 60
ClientTop = 345
ClientWidth = 6420
LinkTopic = "Form4"
ScaleHeight = 4170
ScaleWidth = 6420
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Height = 4095
Left = 23
TabIndex = 0
Top = 0
Width = 6375
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3480
TabIndex = 9
Top = 3360
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 1800
TabIndex = 8
Top = 3360
Width = 1215
End
Begin VB.TextBox Text3
Height = 375
IMEMode = 3 'DISABLE
Left = 2280
PasswordChar = "*"
TabIndex = 7
Text = "Text3"
Top = 2280
Width = 2775
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 2280
PasswordChar = "*"
TabIndex = 6
Text = "Text2"
Top = 1560
Width = 2775
End
Begin VB.TextBox Text1
Height = 375
Left = 2280
TabIndex = 5
Text = "Text1"
Top = 840
Width = 2775
End
Begin VB.Label Label4
Caption = "确认密码"
Height = 375
Left = 840
TabIndex = 4
Top = 2400
Width = 1215
End
Begin VB.Label Label3
Caption = "密码"
Height = 375
Left = 840
TabIndex = 3
Top = 1680
Width = 1215
End
Begin VB.Label Label2
Caption = "用户名"
Height = 375
Left = 840
TabIndex = 2
Top = 960
Width = 1215
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "修 改 密 码"
BeginProperty Font
Name = "黑体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1223
TabIndex = 1
Top = 240
Width = 3975
End
End
End
Attribute VB_Name = "修改密码"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text2.Text <> Text3.Text Then
MsgBox " 确认密码不正确!", vbExclamation + vbOKOnly, "警告"
Text3.SetFocus
Exit Sub
End If
mrc.Fields(1) = Text2.Text
mrc.Update
MsgBox " 修改密码成功!", vbExclamation + vbOKOnly, "警告"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim mrc As ADODB.Recordset
txtsql = "select * from 用户 where 用户名='" & username & "'"
Set mrc = ExecuteSQL(txtsql)
Text1.Text = username
Text1.Enabled = False
Text2.Text = mrc.Fields(1)
Text3.Text = mrc.Fields(1)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -