?? frmxg.frm
字號:
VERSION 5.00
Begin VB.Form Frmxg
Caption = "修改密碼"
ClientHeight = 3960
ClientLeft = 60
ClientTop = 450
ClientWidth = 4830
LinkTopic = "Form1"
ScaleHeight = 3960
ScaleWidth = 4830
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Caption = "修改密碼"
Height = 3375
Left = 240
TabIndex = 0
Top = 240
Width = 4335
Begin VB.CommandButton Command2
Caption = "退 出"
Height = 495
Left = 2400
TabIndex = 10
Top = 2640
Width = 975
End
Begin VB.CommandButton Command1
Caption = "確 定"
Height = 495
Left = 600
TabIndex = 9
Top = 2640
Width = 975
End
Begin VB.TextBox Text4
Height = 375
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 8
Top = 2160
Width = 2175
End
Begin VB.TextBox Text3
Height = 375
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 7
Top = 1560
Width = 2175
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 6
Top = 960
Width = 2175
End
Begin VB.TextBox Text1
Height = 375
Left = 1680
TabIndex = 5
Top = 360
Width = 2175
End
Begin VB.Label Label1
Caption = "原密碼:"
Height = 375
Index = 3
Left = 360
TabIndex = 4
Top = 960
Width = 1095
End
Begin VB.Label Label1
Caption = "新密碼"
Height = 375
Index = 2
Left = 360
TabIndex = 3
Top = 1560
Width = 1095
End
Begin VB.Label Label1
Caption = "確認密碼:"
Height = 375
Index = 1
Left = 360
TabIndex = 2
Top = 2160
Width = 975
End
Begin VB.Label Label1
Caption = "用戶名:"
Height = 375
Index = 0
Left = 360
TabIndex = 1
Top = 360
Width = 1095
End
End
Begin VB.Line Line1
BorderColor = &H00FF0000&
X1 = 120
X2 = 4920
Y1 = 120
Y2 = 120
End
End
Attribute VB_Name = "Frmxg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
cn.Open Frmuse.Adodc1.ConnectionString
rs.Open "select * from 用戶名表 where 用戶名='" & Text1.Text & "'", cn, 1, 3
If Text2.Text <> ma Then
MsgBox "請確認原始密碼!", 16, "提示"
Text2.Text = ""
Text2.SetFocus
Else
If Text3.Text <> "" And Text3.Text = Text4.Text Then
rs.Update "密碼", Text3.Text
MsgBox "修改成功!", 0, "提示信息"
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Else
MsgBox "你輸入的兩次密碼不一致或沒有輸入密碼!", 16, "提示"
Text3.Text = ""
Text4.Text = ""
Text3.SetFocus
End If
End If
End Sub
Private Sub Command2_Click()
Me.Hide
End Sub
Private Sub Form_Load()
Text1.Text = yhm
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -