?? modifyyonghu.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "Msadodc.OCX"
Begin VB.Form modifyyonghu
Caption = "修改密碼"
ClientHeight = 5580
ClientLeft = 60
ClientTop = 345
ClientWidth = 9195
LinkTopic = "Form3"
MDIChild = -1 'True
ScaleHeight = 5580
ScaleWidth = 9195
WindowState = 2 'Maximized
Begin VB.PictureBox Picture1
Height = 2895
Left = 4920
Picture = "modifyyonghu.frx":0000
ScaleHeight = 2835
ScaleWidth = 3435
TabIndex = 8
Top = 480
Width = 3495
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 2760
TabIndex = 4
Top = 3240
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "修改"
Height = 495
Left = 480
TabIndex = 3
Top = 3240
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
IMEMode = 3 'DISABLE
Left = 1440
PasswordChar = "*"
TabIndex = 2
Top = 1320
Width = 2895
End
Begin VB.TextBox Text1
Height = 495
Left = 1440
TabIndex = 1
Text = "a"
Top = 480
Width = 2895
End
Begin VB.TextBox Text3
Height = 495
IMEMode = 3 'DISABLE
Left = 1440
PasswordChar = "*"
TabIndex = 0
Top = 2160
Width = 2895
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 480
Top = 4320
Width = 8055
_ExtentX = 14208
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=圖書館管理系統.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=圖書館管理系統.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "用戶"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label2
Caption = "密碼"
Height = 375
Left = 600
TabIndex = 7
Top = 1440
Width = 975
End
Begin VB.Label Label1
Caption = "用戶名"
Height = 495
Left = 600
TabIndex = 6
Top = 600
Width = 855
End
Begin VB.Label Label3
Caption = "確認密碼"
Height = 375
Left = 600
TabIndex = 5
Top = 2280
Width = 975
End
End
Attribute VB_Name = "modifyyonghu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text <> "" Then
If Text2.Text = Text3.Text Then
Adodc1.Recordset.Filter = "用戶名='" & Text1.Text & "'"
If Adodc1.Recordset.EOF = False Then
Adodc1.Recordset.Fields("密碼") = Text2.Text
Adodc1.Recordset.Update
MsgBox "用戶修改成功"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Else
MsgBox "用戶名不存在!"
Exit Sub
End If
Else
MsgBox "兩次輸入的密碼不一樣!"
Exit Sub
End If
Else
MsgBox "用戶名不能為空!"
Exit Sub
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Adodc1.Refresh
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -