?? login.frm
字號:
VERSION 5.00
Begin VB.Form login
Appearance = 0 'Flat
BackColor = &H00FFC0C0&
BorderStyle = 1 'Fixed Single
Caption = "系統登陸"
ClientHeight = 2610
ClientLeft = 45
ClientTop = 330
ClientWidth = 5715
DrawStyle = 6 'Inside Solid
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
Picture = "login.frx":0000
ScaleHeight = 2610
ScaleWidth = 5715
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton zhuce
Caption = "注冊"
Height = 375
Left = 1200
TabIndex = 7
Top = 1920
Width = 975
End
Begin VB.CommandButton loginCancel
Appearance = 0 'Flat
Caption = "取 消"
Height = 375
Left = 3360
TabIndex = 5
Top = 1920
Width = 975
End
Begin VB.CommandButton loginOK
Appearance = 0 'Flat
BackColor = &H00FFC0C0&
Caption = "確 定"
Height = 375
Left = 2280
TabIndex = 4
Top = 1920
Width = 975
End
Begin VB.TextBox pwd
Height = 375
IMEMode = 3 'DISABLE
Left = 2160
PasswordChar = "*"
TabIndex = 3
Top = 1320
Width = 1695
End
Begin VB.TextBox id
Height = 375
Left = 2160
TabIndex = 2
Top = 840
Width = 1695
End
Begin VB.Label Label3
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "音像制品管理系統"
BeginProperty Font
Name = "華文彩云"
Size = 24
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 495
Left = 840
TabIndex = 6
Top = 120
Width = 4095
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "密 碼"
Height = 255
Left = 1440
TabIndex = 1
Top = 1320
Width = 615
End
Begin VB.Label Label1
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "用戶名"
Height = 255
Left = 1440
TabIndex = 0
Top = 960
Width = 615
End
End
Attribute VB_Name = "login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim pwdcount As Integer
Private Sub loginCancel_Click()
End
End Sub
Private Sub loginOK_Click()
Dim sql As String
Dim rs As ADODB.Recordset
If Trim(id.Text = "") Then
MsgBox "沒有輸入用戶名稱,請重新輸入!", vbOKOnly + vbExclamation, "警告"
readerName.SetFocus
Else
sql = "select * from readers where readerName='" & id.Text & "'"
Set rs = TransactSQL(sql)
If iflag = 1 Then
If rs.EOF = True Then
MsgBox "沒有這個用戶,重新輸入!", vbOKOnly + vbExclamation, "警告"
id.SetFocus
Else
If Trim(rs.Fields(2)) = Trim(pwd.Text) Then
rs.Close
Me.Hide
readerName = Trim(id.Text)
mainFrm.Show
Unload Me
Else
MsgBox "密碼錯誤,重新輸入!", vbOKOnly + vbExclamation, "警告"
pwd.SetFocus
pwd.Text = ""
End If
End If
Else
Unload Me
End If
End If
pwdcount = pwdcount + 1
If pwdcount = 3 Then
MsgBox "錯誤輸入已達3次,系統退出!", vbOKOnly + vbExclamation, "警告"
Unload Me
Exit Sub
End If
End Sub
Private Sub Form_Load()
pwdcount = 0
End Sub
Private Sub zhuce_Click()
readerInfo.Show
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -