⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.vb

📁 这是一个完善的图书馆管理系统.后台数据库采用ACCESS.
💻 VB
📖 第 1 页 / 共 4 页
字号:
Public Class frmMain
    Inherits System.Windows.Forms.Form

#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写 dispose 以清理组件列表。
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents mmnMain As System.Windows.Forms.MainMenu
    Friend WithEvents MenuItem4 As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem9 As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem12 As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem20 As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem24 As System.Windows.Forms.MenuItem
    Friend WithEvents MenuItem28 As System.Windows.Forms.MenuItem
    Friend WithEvents ctxQuery As System.Windows.Forms.ContextMenu
    Friend WithEvents MenuItem30 As System.Windows.Forms.MenuItem
    Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
    Friend WithEvents tabMain As System.Windows.Forms.TabControl
    Friend WithEvents tbpQBook As System.Windows.Forms.TabPage
    Friend WithEvents tbpQReader As System.Windows.Forms.TabPage
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents mniSystemManage As System.Windows.Forms.MenuItem
    Friend WithEvents mniBorrowBook As System.Windows.Forms.MenuItem
    Friend WithEvents mniReturnBook As System.Windows.Forms.MenuItem
    Friend WithEvents mniExit As System.Windows.Forms.MenuItem
    Friend WithEvents mniDataManage As System.Windows.Forms.MenuItem
    Friend WithEvents mniBookManage As System.Windows.Forms.MenuItem
    Friend WithEvents mniReaderManage As System.Windows.Forms.MenuItem
    Friend WithEvents mniAddBook As System.Windows.Forms.MenuItem
    Friend WithEvents mniAddReader As System.Windows.Forms.MenuItem
    Friend WithEvents mniPenalty As System.Windows.Forms.MenuItem
    Friend WithEvents mniPrintReport As System.Windows.Forms.MenuItem
    Friend WithEvents mniPrintAllBooks As System.Windows.Forms.MenuItem
    Friend WithEvents mniPrintAllReaders As System.Windows.Forms.MenuItem
    Friend WithEvents mniPrintLendedBook As System.Windows.Forms.MenuItem
    Friend WithEvents mniSetup As System.Windows.Forms.MenuItem
    Friend WithEvents mniModifyPassword As System.Windows.Forms.MenuItem
    Friend WithEvents mniSetupBookType As System.Windows.Forms.MenuItem
    Friend WithEvents mniSetupReaderType As System.Windows.Forms.MenuItem
    Friend WithEvents mniBookPlace As System.Windows.Forms.MenuItem
    Friend WithEvents mniSetupPenalty As System.Windows.Forms.MenuItem
    Friend WithEvents mniHelp As System.Windows.Forms.MenuItem
    Friend WithEvents mniInsturction As System.Windows.Forms.MenuItem
    Friend WithEvents mniAbout As System.Windows.Forms.MenuItem
    Friend WithEvents tbrMain As System.Windows.Forms.ToolBar
    Friend WithEvents tbbBorrow As System.Windows.Forms.ToolBarButton
    Friend WithEvents tbbReturn As System.Windows.Forms.ToolBarButton
    Friend WithEvents tbbBookManage As System.Windows.Forms.ToolBarButton
    Friend WithEvents tbbReaderManage As System.Windows.Forms.ToolBarButton
    Friend WithEvents tbbQuery As System.Windows.Forms.ToolBarButton
    Friend WithEvents mniAllBooks As System.Windows.Forms.MenuItem
    Friend WithEvents mniLendedBook As System.Windows.Forms.MenuItem
    Friend WithEvents mniLendBookToday As System.Windows.Forms.MenuItem
    Friend WithEvents mniReturnedBookToday As System.Windows.Forms.MenuItem
    Friend WithEvents mniAddedBookToday As System.Windows.Forms.MenuItem
    Friend WithEvents mniAllReaders As System.Windows.Forms.MenuItem
    Friend WithEvents mniBorrowedReaderToday As System.Windows.Forms.MenuItem
    Friend WithEvents mniReturnedReaderToday As System.Windows.Forms.MenuItem
    Friend WithEvents mniAddedReaderToday As System.Windows.Forms.MenuItem
    Friend WithEvents mniDelayedReader As System.Windows.Forms.MenuItem
    Friend WithEvents tbbModifyPassword As System.Windows.Forms.ToolBarButton
    Friend WithEvents tbbAbout As System.Windows.Forms.ToolBarButton
    Friend WithEvents tbbExit As System.Windows.Forms.ToolBarButton
    Friend WithEvents grdBook As System.Windows.Forms.DataGrid
    Friend WithEvents btnQueryBook As System.Windows.Forms.Button
    Friend WithEvents cmbQueryBookType As System.Windows.Forms.ComboBox
    Friend WithEvents txtQueryBookContent As System.Windows.Forms.TextBox
    Friend WithEvents btnRefreshBook As System.Windows.Forms.Button
    Friend WithEvents btnClearBook As System.Windows.Forms.Button
    Friend WithEvents btnPrintViewBook As System.Windows.Forms.Button
    Friend WithEvents btnExportExcelBook As System.Windows.Forms.Button
    Friend WithEvents grdReader As System.Windows.Forms.DataGrid
    Friend WithEvents cmbQueryReaderType As System.Windows.Forms.ComboBox
    Friend WithEvents txtQueryReaderContent As System.Windows.Forms.TextBox
    Friend WithEvents btnQueryReader As System.Windows.Forms.Button
    Friend WithEvents btnRefreshReader As System.Windows.Forms.Button
    Friend WithEvents btnClearReader As System.Windows.Forms.Button
    Friend WithEvents btnPrintViewReader As System.Windows.Forms.Button
    Friend WithEvents btnExportExcelReader As System.Windows.Forms.Button
    Friend WithEvents tbbCount As System.Windows.Forms.ToolBarButton
    Friend WithEvents HelpProvider1 As System.Windows.Forms.HelpProvider
    Friend WithEvents Button1 As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMain))
        Me.mmnMain = New System.Windows.Forms.MainMenu
        Me.mniSystemManage = New System.Windows.Forms.MenuItem
        Me.mniBorrowBook = New System.Windows.Forms.MenuItem
        Me.mniReturnBook = New System.Windows.Forms.MenuItem
        Me.MenuItem4 = New System.Windows.Forms.MenuItem
        Me.mniExit = New System.Windows.Forms.MenuItem
        Me.mniDataManage = New System.Windows.Forms.MenuItem
        Me.mniBookManage = New System.Windows.Forms.MenuItem
        Me.mniReaderManage = New System.Windows.Forms.MenuItem
        Me.MenuItem9 = New System.Windows.Forms.MenuItem
        Me.mniAddBook = New System.Windows.Forms.MenuItem
        Me.mniAddReader = New System.Windows.Forms.MenuItem
        Me.MenuItem12 = New System.Windows.Forms.MenuItem
        Me.mniPenalty = New System.Windows.Forms.MenuItem
        Me.mniPrintReport = New System.Windows.Forms.MenuItem
        Me.mniPrintAllBooks = New System.Windows.Forms.MenuItem
        Me.mniPrintAllReaders = New System.Windows.Forms.MenuItem
        Me.mniPrintLendedBook = New System.Windows.Forms.MenuItem
        Me.mniSetup = New System.Windows.Forms.MenuItem
        Me.mniModifyPassword = New System.Windows.Forms.MenuItem
        Me.MenuItem20 = New System.Windows.Forms.MenuItem
        Me.mniSetupBookType = New System.Windows.Forms.MenuItem
        Me.mniSetupReaderType = New System.Windows.Forms.MenuItem
        Me.mniBookPlace = New System.Windows.Forms.MenuItem
        Me.MenuItem24 = New System.Windows.Forms.MenuItem
        Me.mniSetupPenalty = New System.Windows.Forms.MenuItem
        Me.mniHelp = New System.Windows.Forms.MenuItem
        Me.mniInsturction = New System.Windows.Forms.MenuItem
        Me.MenuItem28 = New System.Windows.Forms.MenuItem
        Me.mniAbout = New System.Windows.Forms.MenuItem
        Me.tbrMain = New System.Windows.Forms.ToolBar
        Me.tbbBorrow = New System.Windows.Forms.ToolBarButton
        Me.tbbReturn = New System.Windows.Forms.ToolBarButton
        Me.tbbBookManage = New System.Windows.Forms.ToolBarButton
        Me.tbbReaderManage = New System.Windows.Forms.ToolBarButton
        Me.tbbQuery = New System.Windows.Forms.ToolBarButton
        Me.ctxQuery = New System.Windows.Forms.ContextMenu
        Me.mniAllBooks = New System.Windows.Forms.MenuItem
        Me.mniLendedBook = New System.Windows.Forms.MenuItem
        Me.mniLendBookToday = New System.Windows.Forms.MenuItem
        Me.mniReturnedBookToday = New System.Windows.Forms.MenuItem
        Me.mniAddedBookToday = New System.Windows.Forms.MenuItem
        Me.MenuItem30 = New System.Windows.Forms.MenuItem
        Me.mniAllReaders = New System.Windows.Forms.MenuItem
        Me.mniBorrowedReaderToday = New System.Windows.Forms.MenuItem
        Me.mniReturnedReaderToday = New System.Windows.Forms.MenuItem
        Me.mniAddedReaderToday = New System.Windows.Forms.MenuItem
        Me.mniDelayedReader = New System.Windows.Forms.MenuItem
        Me.tbbCount = New System.Windows.Forms.ToolBarButton
        Me.tbbModifyPassword = New System.Windows.Forms.ToolBarButton
        Me.tbbAbout = New System.Windows.Forms.ToolBarButton
        Me.tbbExit = New System.Windows.Forms.ToolBarButton
        Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
        Me.tabMain = New System.Windows.Forms.TabControl
        Me.tbpQBook = New System.Windows.Forms.TabPage
        Me.grdBook = New System.Windows.Forms.DataGrid
        Me.btnQueryBook = New System.Windows.Forms.Button
        Me.cmbQueryBookType = New System.Windows.Forms.ComboBox
        Me.txtQueryBookContent = New System.Windows.Forms.TextBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.btnRefreshBook = New System.Windows.Forms.Button
        Me.btnClearBook = New System.Windows.Forms.Button
        Me.btnPrintViewBook = New System.Windows.Forms.Button
        Me.btnExportExcelBook = New System.Windows.Forms.Button
        Me.tbpQReader = New System.Windows.Forms.TabPage
        Me.grdReader = New System.Windows.Forms.DataGrid
        Me.cmbQueryReaderType = New System.Windows.Forms.ComboBox
        Me.txtQueryReaderContent = New System.Windows.Forms.TextBox
        Me.btnQueryReader = New System.Windows.Forms.Button
        Me.Label2 = New System.Windows.Forms.Label
        Me.btnRefreshReader = New System.Windows.Forms.Button
        Me.btnClearReader = New System.Windows.Forms.Button
        Me.btnPrintViewReader = New System.Windows.Forms.Button
        Me.btnExportExcelReader = New System.Windows.Forms.Button
        Me.HelpProvider1 = New System.Windows.Forms.HelpProvider
        Me.Button1 = New System.Windows.Forms.Button
        Me.tabMain.SuspendLayout()
        Me.tbpQBook.SuspendLayout()
        CType(Me.grdBook, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.tbpQReader.SuspendLayout()
        CType(Me.grdReader, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'mmnMain
        '
        Me.mmnMain.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mniSystemManage, Me.mniDataManage, Me.mniPrintReport, Me.mniSetup, Me.mniHelp})
        '
        'mniSystemManage
        '
        Me.mniSystemManage.Index = 0
        Me.mniSystemManage.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mniBorrowBook, Me.mniReturnBook, Me.MenuItem4, Me.mniExit})
        Me.mniSystemManage.Text = "系统管理"
        '
        'mniBorrowBook
        '
        Me.mniBorrowBook.Index = 0
        Me.mniBorrowBook.Text = "借书"
        '
        'mniReturnBook
        '
        Me.mniReturnBook.Index = 1
        Me.mniReturnBook.Text = "还书"
        '
        'MenuItem4
        '
        Me.MenuItem4.Index = 2
        Me.MenuItem4.Text = "-"
        '
        'mniExit
        '
        Me.mniExit.Index = 3
        Me.mniExit.Text = "退出"
        '
        'mniDataManage
        '
        Me.mniDataManage.Index = 1
        Me.mniDataManage.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mniBookManage, Me.mniReaderManage, Me.MenuItem9, Me.mniAddBook, Me.mniAddReader, Me.MenuItem12, Me.mniPenalty})
        Me.mniDataManage.Text = "数据管理"
        '
        'mniBookManage
        '
        Me.mniBookManage.Index = 0
        Me.mniBookManage.Text = "图书管理"
        '
        'mniReaderManage
        '
        Me.mniReaderManage.Index = 1
        Me.mniReaderManage.Text = "读者管理"
        '
        'MenuItem9
        '
        Me.MenuItem9.Index = 2
        Me.MenuItem9.Text = "-"
        '
        'mniAddBook
        '
        Me.mniAddBook.Index = 3
        Me.mniAddBook.Text = "添加图书"
        '
        'mniAddReader
        '
        Me.mniAddReader.Index = 4
        Me.mniAddReader.Text = "添加读者"
        '
        'MenuItem12
        '
        Me.MenuItem12.Index = 5
        Me.MenuItem12.Text = "-"
        '
        'mniPenalty
        '
        Me.mniPenalty.Index = 6
        Me.mniPenalty.Text = "损坏/丢失赔偿"
        '
        'mniPrintReport
        '
        Me.mniPrintReport.Index = 2
        Me.mniPrintReport.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mniPrintAllBooks, Me.mniPrintAllReaders, Me.mniPrintLendedBook})
        Me.mniPrintReport.Text = "打印报表"
        '
        'mniPrintAllBooks
        '
        Me.mniPrintAllBooks.Index = 0
        Me.mniPrintAllBooks.Text = "打印所有图书资料"
        '
        'mniPrintAllReaders
        '
        Me.mniPrintAllReaders.Index = 1
        Me.mniPrintAllReaders.Text = "打印所有读者资料"
        '
        'mniPrintLendedBook
        '
        Me.mniPrintLendedBook.Index = 2
        Me.mniPrintLendedBook.Text = "打印借出图书资料"
        '
        'mniSetup
        '
        Me.mniSetup.Index = 3
        Me.mniSetup.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mniModifyPassword, Me.MenuItem20, Me.mniSetupBookType, Me.mniSetupReaderType, Me.mniBookPlace, Me.MenuItem24, Me.mniSetupPenalty})
        Me.mniSetup.Text = "设置"
        '
        'mniModifyPassword
        '
        Me.mniModifyPassword.Index = 0
        Me.mniModifyPassword.Text = "登录密码修改"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -