?? 密碼修改.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form4
Caption = "密碼修改"
ClientHeight = 2865
ClientLeft = 60
ClientTop = 345
ClientWidth = 3240
LinkTopic = "Form4"
ScaleHeight = 2865
ScaleWidth = 3240
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 1560
Top = 2400
Visible = 0 'False
Width = 1575
_ExtentX = 2778
_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= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Password=315613;Persist Security Info=True;User ID=sa;Initial Catalog=wt;Data Source=wt"
OLEDBString = "Provider=SQLOLEDB.1;Password=315613;Persist Security Info=True;User ID=sa;Initial Catalog=wt;Data Source=wt"
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.TextBox Text3
DataField = "登陸密碼"
DataSource = "Adodc1"
Height = 270
Left = 360
TabIndex = 7
Top = 2400
Visible = 0 'False
Width = 855
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 255
Left = 1680
TabIndex = 6
Top = 2040
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 255
Left = 360
TabIndex = 5
Top = 2040
Width = 975
End
Begin VB.Frame Frame1
Caption = "密碼修改"
Height = 1335
Left = 120
TabIndex = 0
Top = 600
Width = 2895
Begin VB.TextBox Text2
Height = 270
Left = 1200
TabIndex = 4
Top = 840
Width = 1455
End
Begin VB.TextBox Text1
Height = 270
Left = 1200
TabIndex = 3
Top = 240
Width = 1455
End
Begin VB.Label Label2
Caption = "登陸密碼"
Height = 255
Left = 120
TabIndex = 2
Top = 840
Width = 735
End
Begin VB.Label Label1
Caption = "登陸名"
Height = 255
Left = 120
TabIndex = 1
Top = 360
Width = 735
End
End
Begin VB.Label Label3
Caption = "請輸入原來的用戶名和密碼"
Height = 255
Left = 480
TabIndex = 8
Top = 120
Width = 2295
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim m As Integer
Private Sub Command1_Click()
Adodc1.CommandType = adCmdText
Dim sql As String
Dim str1 As String
Dim str2 As String
Dim n As Integer
Dim j As Integer
j = 0
str2 = Text2.Text
sql = "select * from 登陸 where 登陸名='" + Text1.Text + "'"
Adodc1.RecordSource = sql
Adodc1.Refresh
str1 = Text3.Text
n = Len(str2)
For i = 1 To n
If Mid(str1, i, 1) = Mid(str2, i, 1) Then
j = j + 1
End If
Next i
If j = n And Len(Trim(str1)) = Len(Trim(str2)) And Text2.Text <> "" Then
Form7.Show
Unload Me
Else
m = m + 1
Command1.Enabled = False
If m = 3 Then
MsgBox "你是非法用戶,不能修改密碼!", vbExclamation, "提示信息"
End
End If
MsgBox "您的輸入有誤請重試!", 39, "提示信息"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Command1.Enabled = False
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
End Sub
Private Sub Form_Load()
Label3.FontBold = True
End Sub
Private Sub Text1_Change()
Command1.Enabled = True
Command2.Enabled = True
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -