?? main.frm
字號:
VERSION 5.00
Begin VB.Form Login
Caption = "登錄到系統"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 3885
Icon = "Main.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 3195
ScaleWidth = 3885
Begin VB.Frame Frame1
Height = 1575
Left = 240
TabIndex = 5
Top = 120
Width = 3375
Begin VB.TextBox txtPassWord
Height = 270
IMEMode = 3 'DISABLE
Left = 1080
MaxLength = 20
PasswordChar = "*"
TabIndex = 1
Text = "1"
Top = 960
Width = 1935
End
Begin VB.TextBox txtUserName
Height = 270
Left = 1080
MaxLength = 20
TabIndex = 0
Text = "Guest"
Top = 480
Width = 1935
End
Begin VB.Label Label2
Caption = "密碼:"
Height = 255
Left = 360
TabIndex = 7
Top = 960
Width = 735
End
Begin VB.Label Label1
Caption = "用戶名:"
Height = 255
Left = 360
TabIndex = 6
Top = 480
Width = 855
End
End
Begin VB.CommandButton cmdOK
Caption = "登錄"
Default = -1 'True
Height = 495
Left = 2280
TabIndex = 2
Top = 1920
Width = 1215
End
Begin VB.CommandButton cmdRegister
Caption = "注冊新用戶"
Height = 1095
Left = 360
TabIndex = 3
Top = 1920
Width = 1215
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 495
Left = 2280
TabIndex = 4
Top = 2520
Width = 1215
End
End
Attribute VB_Name = "Login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Login
End Sub
Private Sub cmdOK_Click()
If txtUserName.Text = "" Then
MsgBox "請填寫用戶名!", vbOKOnly + vbInformation, "注意"
txtUserName.SetFocus
Exit Sub
ElseIf txtPassword.Text = "" Then
MsgBox "請填寫密碼!", vbOKOnly + vbInformation, "注意"
txtPassword.SetFocus
Exit Sub
End If
g_bLogin = True
If IsExistUser(txtUserName, txtPassword) Then
Unload Login
frmBorrow.Show
Else
If IsExistUser(txtUserName, "") Then
MsgBox "密碼不正確!請重試……", vbOKOnly + vbInformation, "錯誤"
Else
MsgBox "無此用戶!請先注冊……", vbOKOnly + vbInformation, "錯誤"
cmdRegister.SetFocus
End If
End If
End Sub
Private Sub cmdRegister_Click()
Unload Login
Register.Show
End Sub
Private Sub Form_Load()
mdiFrm.mnuFileLog.Enabled = False
End Sub
Private Sub Form_Unload(Cancel As Integer)
mdiFrm.mnuFileLog.Enabled = True
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -