📄 form8.frm
字号:
VERSION 5.00
Begin VB.Form Form8
BorderStyle = 3 'Fixed Dialog
Caption = "用户密码修改"
ClientHeight = 1935
ClientLeft = 45
ClientTop = 330
ClientWidth = 3660
Icon = "Form8.frx":0000
LinkTopic = "Form8"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1935
ScaleWidth = 3660
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 315
Left = 2400
TabIndex = 3
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 315
Left = 1140
TabIndex = 2
Top = 1560
Width = 1215
End
Begin VB.Frame Frame1
Height = 1395
Left = 60
TabIndex = 4
Top = 60
Width = 3555
Begin VB.TextBox Text2
Height = 315
IMEMode = 3 'DISABLE
Left = 1440
PasswordChar = "*"
TabIndex = 1
Top = 660
Width = 1935
End
Begin VB.TextBox Text1
Height = 315
IMEMode = 3 'DISABLE
Left = 1440
PasswordChar = "*"
TabIndex = 0
Top = 240
Width = 1935
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "新密码"
Height = 180
Left = 720
TabIndex = 6
Top = 720
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请输入旧密码"
Height = 180
Left = 180
TabIndex = 5
Top = 300
Width = 1080
End
End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Trim(Text1.Text) = password Then
Dim str As String
str = "update 用户表 set 密码='" & Trim(Text2.Text) & "' where id='" & UserID & "'"
If DoSql(str, False) = True Then
MsgBox "密码修改成功!"
Unload Me
End If
Else
MsgBox "旧密码输入错误!"
Unload Me
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -