?? main.frm
字號(hào):
VERSION 5.00
Begin VB.Form Login
BorderStyle = 1 'Fixed Single
Caption = "登錄學(xué)生檔案管理系統(tǒng)"
ClientHeight = 3390
ClientLeft = 45
ClientTop = 330
ClientWidth = 3720
Icon = "Main.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 3390
ScaleWidth = 3720
Begin VB.Frame Frame1
Height = 1335
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 = 840
Width = 1935
End
Begin VB.TextBox txtUserName
Height = 270
Left = 1080
MaxLength = 20
TabIndex = 0
Text = "admin"
Top = 360
Width = 1935
End
Begin VB.Label Label2
Caption = "密碼:"
Height = 255
Left = 360
TabIndex = 7
Top = 840
Width = 735
End
Begin VB.Label Label1
Caption = "用戶名:"
Height = 255
Left = 360
TabIndex = 6
Top = 360
Width = 855
End
End
Begin VB.CommandButton cmdOK
Caption = "登錄"
Default = -1 'True
Height = 495
Left = 2280
TabIndex = 2
Top = 1560
Width = 1215
End
Begin VB.CommandButton cmdRegister
Caption = "注冊(cè)新用戶"
Height = 1095
Left = 360
TabIndex = 3
Top = 1560
Width = 1215
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 495
Left = 2280
TabIndex = 4
Top = 2160
Width = 1215
End
Begin VB.Label Label3
Caption = "若你不知道該用戶的密碼,請(qǐng)先注冊(cè)新用戶"
Height = 255
Left = 240
TabIndex = 8
Top = 2760
Width = 3375
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 "請(qǐng)?zhí)顚懹脩裘?quot;, vbOKOnly + vbInformation, "注意"
txtUserName.SetFocus
Exit Sub
ElseIf txtPassword.Text = "" Then
MsgBox "請(qǐng)?zhí)顚懨艽a!", vbOKOnly + vbInformation, "注意"
txtPassword.SetFocus
Exit Sub
End If
g_bLogin = True
If IsExistUser(txtUserName, txtPassword) = True Then
Unload Login
frmSearch.Show
Else
If IsExistUser(txtUserName, "") = True Then
MsgBox "密碼不正確!請(qǐng)重試……", vbOKOnly + vbInformation, "錯(cuò)誤"
Else
MsgBox "無(wú)此用戶!請(qǐng)先注冊(cè)……", vbOKOnly + vbInformation, "錯(cuò)誤"
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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -