?? frmpwd.frm
字號:
VERSION 5.00
Begin VB.Form frmpwd
Caption = "Form1"
ClientHeight = 1710
ClientLeft = 5250
ClientTop = 4770
ClientWidth = 4485
LinkTopic = "Form1"
ScaleHeight = 1710
ScaleWidth = 4485
Begin VB.TextBox Text2
Height = 285
IMEMode = 3 'DISABLE
Left = 1935
PasswordChar = "*"
TabIndex = 5
Top = 720
Width = 2085
End
Begin VB.TextBox Text1
Height = 285
IMEMode = 3 'DISABLE
Left = 1935
PasswordChar = "*"
TabIndex = 3
Top = 225
Width = 2085
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 330
Left = 3150
TabIndex = 1
Top = 1170
Width = 870
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 330
Left = 2115
TabIndex = 0
Top = 1170
Width = 870
End
Begin VB.Label Label2
Caption = "確認新密碼"
Height = 285
Left = 540
TabIndex = 4
Top = 765
Width = 1140
End
Begin VB.Label Label1
Caption = "新密碼"
Height = 285
Left = 540
TabIndex = 2
Top = 270
Width = 1275
End
End
Attribute VB_Name = "frmpwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'修改密碼
Dim sql As String
If Text1.Text <> Text2.Text Then
MsgBox "兩次密碼不相同,請重新輸入!"
Text1.Text = ""
Text2.Text = ""
Else
sql = "Update 系統(tǒng)登錄 set 密碼 = '" & Text1.Text & " ' where 用戶 ='" & frmchange.ListView1.SelectedItem.Text & "'"
dbpwd.Execute sql
Unload Me
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -