?? setpasswd.frm
字號(hào):
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form setpasswd
BorderStyle = 1 'Fixed Single
Caption = "修改口令"
ClientHeight = 1710
ClientLeft = 45
ClientTop = 330
ClientWidth = 5790
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1710
ScaleWidth = 5790
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 3720
Top = 45
Visible = 0 'False
Width = 1365
_ExtentX = 2408
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
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.Frame Frame1
Height = 1530
Left = 105
TabIndex = 0
Top = 60
Width = 5580
Begin VB.CommandButton Command2
Caption = "放棄"
Height = 285
Left = 3990
TabIndex = 5
Top = 855
Width = 1005
End
Begin VB.CommandButton Command1
Caption = "確認(rèn)"
Enabled = 0 'False
Height = 285
Left = 3990
TabIndex = 4
Top = 420
Width = 1005
End
Begin VB.TextBox Text3
Height = 300
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 3
Top = 1020
Width = 1500
End
Begin VB.TextBox Text2
Height = 300
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 2
Top = 690
Width = 1500
End
Begin VB.TextBox Text1
Height = 300
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 1
Top = 300
Width = 1500
End
Begin VB.Label Label3
Caption = "驗(yàn)證新口令:"
Height = 285
Left = 360
TabIndex = 8
Top = 1080
Width = 1110
End
Begin VB.Label Label2
Caption = "新口令:"
Height = 240
Left = 375
TabIndex = 7
Top = 735
Width = 1140
End
Begin VB.Label Label1
Caption = "舊口令:"
Height = 270
Left = 375
TabIndex = 6
Top = 345
Width = 990
End
End
End
Attribute VB_Name = "setpasswd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'歡迎你下載使用本代碼,本份代碼由程序太平洋提供下載學(xué)習(xí)之用
'聲明:
'1.本站所有代碼的版權(quán)歸原作者所有,如果你使用了在本站下載的源代碼
' 引起的一切糾紛(后果)與本站無(wú)關(guān),請(qǐng)您尊重原作者的勞動(dòng)成果!
'2.若本站在代碼上有侵權(quán)之處請(qǐng)您與站長(zhǎng)聯(lián)系,站長(zhǎng)會(huì)及時(shí)更正。
'網(wǎng)站:http://www.dapha.net
'論壇:http://www.5ivb.net
'Email:dapha@etang.com
'CopyRight 2001-2005 By dapha.net
'整理時(shí)間:2003-12-8 12:22:14
Private Sub Command1_Click()
Adodc1.Recordset.Fields("userno") = Text3.Text
Adodc1.Recordset.Update
MsgBox "恭喜您:口令修改成功!", vbOKOnly, "提示"
Adodc1.Recordset.Close
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
'星級(jí)酒店管理系統(tǒng)最初功能演示版,提供所有星級(jí)酒店管理中的客房管理,
'房態(tài)管理,客史管理,客人資料管理,帳務(wù)管理,報(bào)表管理,餐飲收費(fèi)管理
'菜譜管理,夜審處理,數(shù)據(jù)庫(kù)備份等功能.所有功能皆可以運(yùn)行,(但有一些BUG未處理)
'此代碼完全可以完成星級(jí)酒店上述管理功能.(提供者:帥)
'--------------------------------------------------------------
'代碼編寫(xiě)于:2001.12 系統(tǒng)分析:帥 代碼編寫(xiě):帥 版權(quán)所有:帥
'--------------------------------------------------------------
'本份代碼僅提供給程序太平洋的所有朋友學(xué)習(xí),研究之用.
'其它網(wǎng)站一律不得轉(zhuǎn)載,否則為侵權(quán)行為,本人保留法律追訴權(quán)力.
'這也是本人最早的VB版程序,代碼質(zhì)量不好.望笑納.:)
'--------------------------------------------------------------
'提供日期:2003-05-31 提供者:帥
'--------------------------------------------------------------
'系統(tǒng)提從與ACCESS或SQL相接,在登錄時(shí),選擇全局?jǐn)?shù)據(jù)庫(kù),就與SQL數(shù)據(jù)庫(kù)
'連接,字符串存放在SERVER.DAT文本文件中;選擇本地?cái)?shù)據(jù)庫(kù),與本地ACCESS
'數(shù)據(jù)庫(kù)相連,連接字符串存放在LOCAT.DAT文件中.(當(dāng)前存放為e:\hotel2\room.mdb)
'---------------------------------------------------------------
'將ACCESS中所有表導(dǎo)入SQL中,并將有的表中的ID字段改為自動(dòng)編碼,就可以使用.
'---------------------------------------------------------------------
'
'
Private Sub Form_Load()
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
Dim strFind As String
If KeyAscii = Asc(Chr(13)) Then
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 用戶(hù) where username like '" & CzyName & "' and userno like '" & Me.Text1.Text & "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount <> 0 Then
Me.Text2.SetFocus
Else
MsgBox "請(qǐng)注意:舊口令不對(duì)!重新輸入。", vbOKOnly, "提示"
Me.Text1.SetFocus
End If
End If
End Sub
Private Sub Text1_LostFocus()
Dim strFind As String
If KeyAscii = Asc(Chr(13)) Then
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 用戶(hù) where username like '" & CzyName & "' and userno like '" & Me.Text1.Text & "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount <> 0 Then
Me.Text2.SetFocus
Else
MsgBox "請(qǐng)注意:舊口令不對(duì)!重新輸入。", vbOKOnly, "提示"
Me.Text1.SetFocus
End If
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc(Chr(13)) Then
If IsNull(Text2) Or Text2 = "" Then
MsgBox "請(qǐng)注意:口令不能為空!", 48, "提示"
Text2.SetFocus
Else
Text3.SetFocus
End If
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc(Chr(13)) Then
If Text2.Text <> Text3.Text Then
MsgBox "請(qǐng)注意:新口令二次驗(yàn)證不符!重新輸入。", vbOKOnly, "提示"
Text2.SetFocus
Else
Command1.Enabled = True
Command1.SetFocus
End If
End If
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -