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

📄 frm_addnewbook.vb

📁 图书管理系统,在vb.net环境下运行,可以作为专业开发人士参考
💻 VB
📖 第 1 页 / 共 3 页
字号:

Imports System.Data.OleDb
Public Class frm_AddNewBook
    Inherits System.Windows.Forms.Form
    Dim picPath As String = "C:\pictures\nopic.jpg"
    Dim bookPicture As System.Drawing.Bitmap
    Dim MyConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\Library.mdb")
    Dim MyCommand As OleDbCommand
    Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
    Dim MyReader As OleDbDataReader

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    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

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents TxtSN As System.Windows.Forms.TextBox
    Friend WithEvents TxtISBN As System.Windows.Forms.TextBox
    Friend WithEvents TxtBookName As System.Windows.Forms.TextBox
    Friend WithEvents ComboBookCode As System.Windows.Forms.ComboBox
    Friend WithEvents TxtBookCode As System.Windows.Forms.TextBox
    Friend WithEvents ComboBookType As System.Windows.Forms.ComboBox
    Friend WithEvents TxtBookType As System.Windows.Forms.TextBox
    Friend WithEvents TxtBookDes As System.Windows.Forms.TextBox
    Friend WithEvents TxtBookAuthor As System.Windows.Forms.TextBox
    Friend WithEvents TxtEdition As System.Windows.Forms.TextBox
    Friend WithEvents TxtPublishdate As System.Windows.Forms.TextBox
    Friend WithEvents ComboStatus As System.Windows.Forms.ComboBox
    Friend WithEvents TxtAdditionDate As System.Windows.Forms.TextBox
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
    Friend WithEvents BtnLoad As System.Windows.Forms.Button
    Friend WithEvents BtnAdd As System.Windows.Forms.Button
    Friend WithEvents BtnClear As System.Windows.Forms.Button
    Friend WithEvents Button4 As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frm_AddNewBook))
        Me.Label1 = New System.Windows.Forms.Label
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label7 = New System.Windows.Forms.Label
        Me.Label8 = New System.Windows.Forms.Label
        Me.Label9 = New System.Windows.Forms.Label
        Me.Label10 = New System.Windows.Forms.Label
        Me.Label11 = New System.Windows.Forms.Label
        Me.TxtSN = New System.Windows.Forms.TextBox
        Me.TxtISBN = New System.Windows.Forms.TextBox
        Me.TxtBookName = New System.Windows.Forms.TextBox
        Me.ComboBookCode = New System.Windows.Forms.ComboBox
        Me.TxtBookCode = New System.Windows.Forms.TextBox
        Me.ComboBookType = New System.Windows.Forms.ComboBox
        Me.TxtBookType = New System.Windows.Forms.TextBox
        Me.TxtBookDes = New System.Windows.Forms.TextBox
        Me.TxtBookAuthor = New System.Windows.Forms.TextBox
        Me.TxtEdition = New System.Windows.Forms.TextBox
        Me.TxtPublishdate = New System.Windows.Forms.TextBox
        Me.ComboStatus = New System.Windows.Forms.ComboBox
        Me.TxtAdditionDate = New System.Windows.Forms.TextBox
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.BtnLoad = New System.Windows.Forms.Button
        Me.PictureBox1 = New System.Windows.Forms.PictureBox
        Me.BtnAdd = New System.Windows.Forms.Button
        Me.BtnClear = New System.Windows.Forms.Button
        Me.Button4 = New System.Windows.Forms.Button
        Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.Location = New System.Drawing.Point(41, 26)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(29, 12)
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "编号"
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.Location = New System.Drawing.Point(286, 27)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(53, 12)
        Me.Label2.TabIndex = 1
        Me.Label2.Text = "ISDN号码"
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.Location = New System.Drawing.Point(17, 60)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(53, 12)
        Me.Label3.TabIndex = 2
        Me.Label3.Text = "书籍名称"
        '
        'Label4
        '
        Me.Label4.AutoSize = True
        Me.Label4.Location = New System.Drawing.Point(29, 95)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(41, 12)
        Me.Label4.TabIndex = 4
        Me.Label4.Text = "索书号"
        '
        'Label5
        '
        Me.Label5.AutoSize = True
        Me.Label5.Location = New System.Drawing.Point(17, 129)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(53, 12)
        Me.Label5.TabIndex = 5
        Me.Label5.Text = "书籍类型"
        '
        'Label6
        '
        Me.Label6.AutoSize = True
        Me.Label6.Location = New System.Drawing.Point(41, 164)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(29, 12)
        Me.Label6.TabIndex = 6
        Me.Label6.Text = "描述"
        '
        'Label7
        '
        Me.Label7.AutoSize = True
        Me.Label7.Location = New System.Drawing.Point(41, 198)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(29, 12)
        Me.Label7.TabIndex = 7
        Me.Label7.Text = "作者"
        '
        'Label8
        '
        Me.Label8.AutoSize = True
        Me.Label8.Location = New System.Drawing.Point(310, 198)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(29, 12)
        Me.Label8.TabIndex = 8
        Me.Label8.Text = "编辑"
        '
        'Label9
        '
        Me.Label9.AutoSize = True
        Me.Label9.Location = New System.Drawing.Point(17, 233)
        Me.Label9.Name = "Label9"
        Me.Label9.Size = New System.Drawing.Size(53, 12)
        Me.Label9.TabIndex = 9
        Me.Label9.Text = "出版日期"
        '
        'Label10
        '
        Me.Label10.AutoSize = True
        Me.Label10.Location = New System.Drawing.Point(286, 241)
        Me.Label10.Name = "Label10"
        Me.Label10.Size = New System.Drawing.Size(53, 12)
        Me.Label10.TabIndex = 10
        Me.Label10.Text = "当前状态"
        '
        'Label11
        '
        Me.Label11.AutoSize = True
        Me.Label11.Location = New System.Drawing.Point(17, 267)
        Me.Label11.Name = "Label11"
        Me.Label11.Size = New System.Drawing.Size(53, 12)
        Me.Label11.TabIndex = 11
        Me.Label11.Text = "添加日期"
        '
        'TxtSN
        '
        Me.TxtSN.Location = New System.Drawing.Point(109, 26)
        Me.TxtSN.MaxLength = 10
        Me.TxtSN.Name = "TxtSN"
        Me.TxtSN.Size = New System.Drawing.Size(153, 21)
        Me.TxtSN.TabIndex = 12
        '
        'TxtISBN
        '
        Me.TxtISBN.Location = New System.Drawing.Point(352, 26)
        Me.TxtISBN.Name = "TxtISBN"
        Me.TxtISBN.Size = New System.Drawing.Size(140, 21)
        Me.TxtISBN.TabIndex = 13
        '
        'TxtBookName
        '
        Me.TxtBookName.Location = New System.Drawing.Point(109, 60)
        Me.TxtBookName.Name = "TxtBookName"
        Me.TxtBookName.Size = New System.Drawing.Size(383, 21)
        Me.TxtBookName.TabIndex = 14
        '
        'ComboBookCode
        '
        Me.ComboBookCode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.ComboBookCode.Location = New System.Drawing.Point(108, 95)
        Me.ComboBookCode.Name = "ComboBookCode"
        Me.ComboBookCode.Size = New System.Drawing.Size(77, 20)
        Me.ComboBookCode.TabIndex = 15
        '
        'TxtBookCode
        '
        Me.TxtBookCode.BackColor = System.Drawing.SystemColors.Info
        Me.TxtBookCode.Enabled = False
        Me.TxtBookCode.ForeColor = System.Drawing.SystemColors.ControlText
        Me.TxtBookCode.Location = New System.Drawing.Point(195, 95)
        Me.TxtBookCode.Name = "TxtBookCode"
        Me.TxtBookCode.Size = New System.Drawing.Size(297, 21)
        Me.TxtBookCode.TabIndex = 16
        '
        'ComboBookType
        '
        Me.ComboBookType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.ComboBookType.Location = New System.Drawing.Point(107, 129)
        Me.ComboBookType.Name = "ComboBookType"
        Me.ComboBookType.Size = New System.Drawing.Size(77, 20)
        Me.ComboBookType.TabIndex = 17
        '
        'TxtBookType
        '
        Me.TxtBookType.BackColor = System.Drawing.SystemColors.Info
        Me.TxtBookType.Enabled = False
        Me.TxtBookType.ForeColor = System.Drawing.SystemColors.ControlText
        Me.TxtBookType.Location = New System.Drawing.Point(195, 129)
        Me.TxtBookType.Name = "TxtBookType"
        Me.TxtBookType.Size = New System.Drawing.Size(297, 21)
        Me.TxtBookType.TabIndex = 18
        '
        'TxtBookDes
        '
        Me.TxtBookDes.Location = New System.Drawing.Point(109, 164)
        Me.TxtBookDes.Name = "TxtBookDes"
        Me.TxtBookDes.Size = New System.Drawing.Size(383, 21)
        Me.TxtBookDes.TabIndex = 19
        '
        'TxtBookAuthor
        '
        Me.TxtBookAuthor.Location = New System.Drawing.Point(109, 198)
        Me.TxtBookAuthor.Name = "TxtBookAuthor"
        Me.TxtBookAuthor.Size = New System.Drawing.Size(153, 21)
        Me.TxtBookAuthor.TabIndex = 20
        '
        'TxtEdition

⌨️ 快捷键说明

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