?? mainlibrary.frm
字號(hào):
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm mdiFrm
AutoShowChildren= 0 'False
BackColor = &H8000000C&
Caption = "圖書(shū)館數(shù)據(jù)庫(kù)管理系統(tǒng)"
ClientHeight = 6585
ClientLeft = 165
ClientTop = 735
ClientWidth = 8775
Icon = "MainLibrary.frx":0000
LinkTopic = "MDIForm1"
StartUpPosition = 3 '窗口缺省
Begin MSComctlLib.ImageList ImageList1
Left = 4080
Top = 3000
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 5
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MainLibrary.frx":030A
Key = "login"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MainLibrary.frx":0626
Key = "logout"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MainLibrary.frx":0942
Key = "Reg"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MainLibrary.frx":0C5E
Key = "mng"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "MainLibrary.frx":0F7A
Key = "borrow"
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 855
Left = 0
TabIndex = 0
Top = 0
Width = 8775
_ExtentX = 15478
_ExtentY = 1508
ButtonWidth = 1138
ButtonHeight = 1349
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 8
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "登錄"
Key = "login"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "注冊(cè)"
Key = "reg"
ImageIndex = 3
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "注銷(xiāo)"
Key = "logout"
ImageIndex = 2
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "管理"
Key = "mng"
ImageIndex = 4
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "出納臺(tái)"
Key = "borrow"
ImageIndex = 5
EndProperty
EndProperty
End
Begin VB.Menu mnuFile
Caption = "文件(&F)"
Begin VB.Menu mnuFileLog
Caption = "登錄(&I)..."
End
Begin VB.Menu mnuReg
Caption = "注冊(cè)(&R)..."
End
Begin VB.Menu mnuLogout
Caption = "注銷(xiāo)(&O)"
End
Begin VB.Menu mnuLine
Caption = "-"
End
Begin VB.Menu mnuExit
Caption = "退出(&X)"
End
End
Begin VB.Menu mnuGen
Caption = "功能(&G)"
Begin VB.Menu mnuMng
Caption = "管理(&M)"
End
Begin VB.Menu mnuBorrow
Caption = "出納臺(tái)(&B)"
End
End
Begin VB.Menu mnuAbout
Caption = "關(guān)于(&A)"
Begin VB.Menu mnuAboutit
Caption = "關(guān)于此程序..."
End
End
End
Attribute VB_Name = "mdiFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub MDIForm_Load()
g_CurUserID = 0
g_bLogin = False
g_bAdmin = False
mnuFileLog_Click
End Sub
Private Sub mnuAboutit_Click()
MsgBox "版權(quán)所有(C) flyer corp 2000", vbInformation, "關(guān)于本程序"
End Sub
Private Sub mnuExit_Click()
If MsgBox("是否退出此系統(tǒng)?", vbYesNo + vbCritical, "系統(tǒng)") = vbYes Then
End
End If
End Sub
Private Sub mnuFileLog_Click()
CloseWin
Login.Height = 3600
Login.Width = 4000
Login.Left = 5000
Login.Top = 2000
Login.Show
End Sub
Private Sub mnuLogout_Click()
If MsgBox("是否真的注銷(xiāo)當(dāng)前用戶(hù)?", vbCritical + vbYesNo, "注銷(xiāo)") = vbYes Then
g_bLogin = False
g_bAdmin = False
g_CurUserID = 0
CloseWin
End If
End Sub
Private Sub mnuMng_Click()
If g_bAdmin Then
CloseWin
manage.Show
Else
MsgBox "請(qǐng)以管理員身份登錄系統(tǒng)!", vbInformation, "登錄"
End If
End Sub
Private Sub mnuBorrow_Click()
CloseWin
frmBorrow.Show
End Sub
Private Sub mnuReg_Click()
CloseWin
Register.Show
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "login"
mnuFileLog_Click
Case "logout"
mnuLogout_Click
Case "reg"
mnuReg_Click
Case "mng"
mnuMng_Click
Case "borrow"
mnuBorrow_Click
End Select
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -