📄 useredit_edp1.frm
字号:
VERSION 5.00
Begin VB.Form useredit_edp1
BorderStyle = 4 'Fixed ToolWindow
Caption = "修改密码"
ClientHeight = 3510
ClientLeft = 45
ClientTop = 270
ClientWidth = 5010
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3510
ScaleWidth = 5010
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.TextBox Text1
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 9
Top = 600
Width = 3015
End
Begin VB.CommandButton Command4
Cancel = -1 'True
Caption = "取 消(&C)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3600
TabIndex = 6
Top = 3000
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "确 定(&Y)"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2160
TabIndex = 5
Top = 3000
Width = 1335
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 4
Top = 1560
Width = 3015
End
Begin VB.PictureBox Picture1
BackColor = &H00FFE09E&
Height = 3495
Left = 0
Picture = "useredit_edp1.frx":0000
ScaleHeight = 3435
ScaleWidth = 1755
TabIndex = 1
TabStop = 0 'False
Top = 0
Width = 1815
Begin VB.Shape Shape1
BorderColor = &H000000FF&
BorderWidth = 2
Height = 15
Left = 120
Top = 1440
Width = 1335
End
Begin VB.Shape Shape2
BorderColor = &H0000FF00&
BorderWidth = 2
Height = 15
Left = 120
Top = 1485
Width = 1215
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "修改密码"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 375
Index = 1
Left = 165
TabIndex = 2
Top = 1005
Width = 2535
End
Begin VB.Image Image1
Height = 720
Left = 240
Picture = "useredit_edp1.frx":3A064
Stretch = -1 'True
Top = 120
Width = 720
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "修改密码"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Index = 0
Left = 130
TabIndex = 3
Top = 970
Width = 2655
End
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 0
Top = 2400
Width = 3015
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "[root]用户的老密码:(&P)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 1920
TabIndex = 10
Top = 240
Width = 2295
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Caption = "新密码:(&P)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 1920
TabIndex = 8
Top = 1200
Width = 2295
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "确定新密码:(&P)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 1920
TabIndex = 7
Top = 2040
Width = 2295
End
End
Attribute VB_Name = "useredit_edp1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public yesno As Boolean
Public nn As String
Private Sub Command2_Click()
Dim kk As New ADODB.Recordset
Dim cc As New ADODB.Connection
cc.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\fdsw1.mmm;Jet OLEDB:Database Password=pianopan412424;Persist Security Info=False"
kk.Open "select * from [user] where [ID]=1", cc, 3, 2
If kk.Fields(2) <> Text1.Text Then
MsgBox "[root]用户老密码不正确" & Chr(13) & Chr(10) & "请您确定老密码输入正确", vbOKOnly Or vbInformation, "提示"
Text1.SetFocus
Exit Sub
End If
If Len(Text2.Text) > 10 Then
MsgBox "新密码过长" & Chr(13) & Chr(10) & "请您修改", vbOKOnly Or vbInformation, "提示"
Text2.SetFocus
Exit Sub
End If
If Text2.Text <> Text3.Text Then
MsgBox "新密码重复错误" & Chr(13) & Chr(10) & "请您修改", vbOKOnly Or vbInformation, "提示"
Text2.SetFocus
Exit Sub
End If
nn = Text2.Text
yesno = True
Unload Me
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Load()
yesno = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -