📄 frmupdate.frm
字号:
VERSION 5.00
Begin VB.Form FrmUpdate
BorderStyle = 3 'Fixed Dialog
Caption = "《数据结构》算法速查器"
ClientHeight = 2880
ClientLeft = 45
ClientTop = 435
ClientWidth = 4095
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2880
ScaleWidth = 4095
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3000
TabIndex = 7
Top = 2400
Width = 735
End
Begin VB.CommandButton Command1
Caption = "确定"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1920
TabIndex = 6
Top = 2400
Width = 735
End
Begin VB.TextBox Txt_Pwd2
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 5
Top = 1800
Width = 1695
End
Begin VB.TextBox Txt_Pwd
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 4
Top = 1200
Width = 1695
End
Begin VB.Label Label4
BackColor = &H00FF0000&
Caption = "更改用户密码"
BeginProperty Font
Name = "方正姚体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Left = 120
TabIndex = 8
Top = 120
Width = 1455
End
Begin VB.Image Image1
Height = 615
Left = 0
Picture = "FrmUpdate.frx":0000
Stretch = -1 'True
Top = 0
Width = 4095
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "重复一次密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 240
TabIndex = 3
Top = 1800
Width = 1680
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1200
TabIndex = 2
Top = 1200
Width = 720
End
Begin VB.Label Label_ID
AutoSize = -1 'True
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 2160
TabIndex = 1
Top = 720
Width = 960
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "ID:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1440
TabIndex = 0
Top = 720
Width = 480
End
End
Attribute VB_Name = "FrmUpdate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public IDkey As String
Public PasswordKey As String
Private Sub Command1_Click()
Dim OK As String
IDkey = now
PasswordKey = MakeStr(Txt_Pwd)
If Txt_Pwd = "" Then
MsgBox "请输入密码", , "提示"
Txt_Pwd.SetFocus
Exit Sub
End If
If Txt_Pwd2 = "" Then
MsgBox "请重复一次输入密码", , "提示"
Txt_Pwd2.SetFocus
Exit Sub
End If
If Txt_Pwd.Text = Txt_Pwd2.Text Then
OK = MyUser.Update(IDkey, PasswordKey)
If OK = False Then
MsgBox "更新成功", , "提示"
Unload Me
End If
Else
MsgBox "前后密码不匹配", , "提示"
Txt_Pwd.Text = ""
Txt_Pwd2.Text = ""
Txt_Pwd.SetFocus
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -