?? frmchange.frm
字號(hào):
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3750
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 3750
ScaleWidth = 4680
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2160
TabIndex = 11
Top = 3240
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "提交"
Height = 375
Left = 600
TabIndex = 10
Top = 3240
Width = 1335
End
Begin VB.Frame Frame2
Height = 1455
Left = 120
TabIndex = 1
Top = 1680
Width = 4455
Begin VB.TextBox Text4
Height = 375
Left = 1320
TabIndex = 9
Top = 840
Width = 2535
End
Begin VB.TextBox Text3
Height = 375
Left = 1320
TabIndex = 8
Top = 240
Width = 2535
End
Begin VB.Label Label4
Caption = "確認(rèn)密碼"
Height = 375
Left = 240
TabIndex = 7
Top = 960
Width = 855
End
Begin VB.Label Label3
Caption = "新密碼"
Height = 375
Left = 240
TabIndex = 6
Top = 360
Width = 855
End
End
Begin VB.Frame Frame1
Height = 1575
Left = 120
TabIndex = 0
Top = 0
Width = 4455
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 2280
Top = 1200
Visible = 0 'False
Width = 2055
_ExtentX = 3625
_ExtentY = 582
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= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=ais"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "ais"
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.TextBox Text2
Height = 375
Left = 1320
TabIndex = 3
Top = 840
Width = 2655
End
Begin VB.TextBox Text1
Height = 375
Left = 1320
TabIndex = 2
Top = 240
Width = 2655
End
Begin VB.Label Label2
Caption = "原密碼"
Height = 375
Left = 240
TabIndex = 5
Top = 960
Width = 1095
End
Begin VB.Label Label1
Caption = "用戶名"
Height = 375
Left = 240
TabIndex = 4
Top = 360
Width = 1095
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Call confirm
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Sub confirm()
Adodc1.Recordset.Find "name='" + Text1.Text + "'"
If Adodc1.Recordset.EOF Then
MsgBox "用戶名或密碼錯(cuò)誤,請重新輸入"
Text1.Text = ""
Text2.Text = ""
Else
If Adodc1.Recordset.Fields("password") = Text2.Text Then
If Text3.Text = Text4.Text Then
Adodc1.Recordset.Fields("password") = Text3.Text
Else
MsgBox "兩次密碼輸入不一致"
End If
End If
End If
Adodc1.Recordset.Update
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -