📄 passwd.frm
字号:
VERSION 5.00
Begin VB.Form Passwd
Caption = "密码修改"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form5"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command2
Caption = "放弃"
Height = 495
Left = 2760
TabIndex = 3
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 960
TabIndex = 2
Top = 2160
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Left = 960
TabIndex = 1
Top = 1200
Width = 3015
End
Begin VB.Label Label1
Caption = "请输入新密码"
BeginProperty Font
Name = "幼圆"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1440
TabIndex = 0
Top = 480
Width = 1815
End
End
Attribute VB_Name = "Passwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Not (IsNumeric(Text1.Text)) Or Len(Text1.Text) < 6 Or Len(Text1.Text) > 10 Then
MsgBox "密码必须由6至10位的纯数字组成", vbOKOnly + vbInformation, "请输入密码"
Text1.Text = ""
Text1.SetFocus
Else
Call connectDB
adoRS.Open "select * from 银行表 where 帐号='" & Login.id & "'", adoCon
adoRS("密码") = Text1.Text
adoRS.Update
MsgBox "密码修改成功", vbOKOnly + vbInformation, "系统提示"
Unload Me
Main.Show
End If
End Sub
Private Sub Command2_Click()
Unload Me
Main.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -