📄 密码更改.frm
字号:
VERSION 5.00
Begin VB.Form 密码更改
Caption = "密码更改界面-小凡工作室"
ClientHeight = 5385
ClientLeft = 5430
ClientTop = 3975
ClientWidth = 8070
LinkTopic = "Form1"
Picture = "密码更改.frx":0000
ScaleHeight = 5385
ScaleWidth = 8070
Begin VB.TextBox Text3
DataField = "TrueName"
DataSource = "Data1"
Height = 375
Left = 2880
TabIndex = 7
Text = "Text3"
Top = 2880
Width = 2055
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = 5280
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "KeyID"
Top = 1560
Visible = 0 'False
Width = 2820
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 495
Left = 4080
TabIndex = 5
Top = 4200
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 1440
TabIndex = 1
Top = 4200
Width = 1215
End
Begin VB.TextBox Text2
DataField = "Key"
DataSource = "Data1"
Height = 375
IMEMode = 3 'DISABLE
Left = 2880
PasswordChar = "*"
TabIndex = 4
Text = "Text2"
Top = 1920
Width = 2055
End
Begin VB.TextBox Text1
DataField = "UserName"
DataSource = "Data1"
Height = 375
Left = 2880
TabIndex = 3
Text = "Text1"
Top = 840
Width = 2055
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "真实姓名:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1440
TabIndex = 6
Top = 2880
Width = 1335
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "密码:"
BeginProperty Font
Name = "黑体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1440
TabIndex = 2
Top = 2040
Width = 1215
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "用户名:"
BeginProperty Font
Name = "黑体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1440
TabIndex = 0
Top = 840
Width = 1215
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()
Dim ianswer As String
ianswer = MsgBox("你真的要更改秘密吗?", vbYesNo, "提示框")
If ianswer = vbYes Then
Data1.Refresh
MsgBox "密码更改成功!", vbOKOnly, "提示框"
End If
End Sub
Private Sub Command1_KeyPress(KeyAscii As Integer)
Dim ianswer As String
If KeyAscii = 13 Then
ianswer = MsgBox("你真的要更改秘密吗?", vbYesNo, "提示框")
If ianswer = vbYes Then
Data1.Refresh
MsgBox "密码更改成功!", vbOKOnly, "提示框"
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
进入界面.Show
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path + "\" + "jjdd.mdb"
Data1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -