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

📄 frm_editbookdetails.vb

📁 用vb.net+SQL做的,本系统实现了图书管理系统应该具有的特色
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports System.Data.OleDb
Public Class frm_EditBookDetails
    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
    Dim MyReader As OleDbDataReader
    Dim bookcode1 As String
    Friend WithEvents BtnRead As System.Windows.Forms.Button
    Dim booktype1 As String

#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 TxtSN As System.Windows.Forms.TextBox
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents BtnEdit As System.Windows.Forms.Button
    Friend WithEvents Button2 As System.Windows.Forms.Button
    Friend WithEvents Button3 As System.Windows.Forms.Button
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents TxtBookName As System.Windows.Forms.TextBox
    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 BtnChange As System.Windows.Forms.Button
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents TxtBookAuthor As System.Windows.Forms.TextBox
    Friend WithEvents ComboBookType As System.Windows.Forms.ComboBox
    Friend WithEvents TxtBookCode As System.Windows.Forms.TextBox
    Friend WithEvents ComboBookCode As System.Windows.Forms.ComboBox
    Friend WithEvents TxtBookType As System.Windows.Forms.TextBox
    Friend WithEvents TxtBookDes As System.Windows.Forms.TextBox
    Friend WithEvents TxtPublishdate As System.Windows.Forms.TextBox
    Friend WithEvents TxtAdditionDate As System.Windows.Forms.TextBox
    Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frm_EditBookDetails))
        Me.Label1 = New System.Windows.Forms.Label
        Me.TxtSN = New System.Windows.Forms.TextBox
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.TxtAdditionDate = New System.Windows.Forms.TextBox
        Me.TxtPublishdate = New System.Windows.Forms.TextBox
        Me.TxtBookDes = New System.Windows.Forms.TextBox
        Me.TxtBookType = 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.TxtBookAuthor = New System.Windows.Forms.TextBox
        Me.Label8 = New System.Windows.Forms.Label
        Me.Label7 = New System.Windows.Forms.Label
        Me.BtnChange = New System.Windows.Forms.Button
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.TxtBookName = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.PictureBox1 = New System.Windows.Forms.PictureBox
        Me.BtnEdit = New System.Windows.Forms.Button
        Me.Button2 = New System.Windows.Forms.Button
        Me.Button3 = New System.Windows.Forms.Button
        Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog
        Me.BtnRead = New System.Windows.Forms.Button
        Me.GroupBox1.SuspendLayout()
        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(51, 15)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(77, 25)
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "编号"
        '
        'TxtSN
        '
        Me.TxtSN.Location = New System.Drawing.Point(134, 14)
        Me.TxtSN.Name = "TxtSN"
        Me.TxtSN.Size = New System.Drawing.Size(278, 21)
        Me.TxtSN.TabIndex = 1
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.TxtAdditionDate)
        Me.GroupBox1.Controls.Add(Me.TxtPublishdate)
        Me.GroupBox1.Controls.Add(Me.TxtBookDes)
        Me.GroupBox1.Controls.Add(Me.TxtBookType)
        Me.GroupBox1.Controls.Add(Me.ComboBookCode)
        Me.GroupBox1.Controls.Add(Me.TxtBookCode)
        Me.GroupBox1.Controls.Add(Me.ComboBookType)
        Me.GroupBox1.Controls.Add(Me.TxtBookAuthor)
        Me.GroupBox1.Controls.Add(Me.Label8)
        Me.GroupBox1.Controls.Add(Me.Label7)
        Me.GroupBox1.Controls.Add(Me.BtnChange)
        Me.GroupBox1.Controls.Add(Me.Label6)
        Me.GroupBox1.Controls.Add(Me.Label5)
        Me.GroupBox1.Controls.Add(Me.Label4)
        Me.GroupBox1.Controls.Add(Me.Label3)
        Me.GroupBox1.Controls.Add(Me.TxtBookName)
        Me.GroupBox1.Controls.Add(Me.Label2)
        Me.GroupBox1.Controls.Add(Me.PictureBox1)
        Me.GroupBox1.Location = New System.Drawing.Point(10, 52)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(590, 241)
        Me.GroupBox1.TabIndex = 2
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "图书信息"
        '
        'TxtAdditionDate
        '
        Me.TxtAdditionDate.Location = New System.Drawing.Point(383, 207)
        Me.TxtAdditionDate.Name = "TxtAdditionDate"
        Me.TxtAdditionDate.Size = New System.Drawing.Size(195, 21)
        Me.TxtAdditionDate.TabIndex = 21
        '
        'TxtPublishdate
        '
        Me.TxtPublishdate.Location = New System.Drawing.Point(124, 207)
        Me.TxtPublishdate.Name = "TxtPublishdate"
        Me.TxtPublishdate.Size = New System.Drawing.Size(120, 21)
        Me.TxtPublishdate.TabIndex = 20
        '
        'TxtBookDes
        '
        Me.TxtBookDes.Location = New System.Drawing.Point(124, 164)
        Me.TxtBookDes.Name = "TxtBookDes"
        Me.TxtBookDes.Size = New System.Drawing.Size(278, 21)
        Me.TxtBookDes.TabIndex = 19
        '
        'TxtBookType
        '
        Me.TxtBookType.BackColor = System.Drawing.SystemColors.Info
        Me.TxtBookType.Enabled = False
        Me.TxtBookType.Location = New System.Drawing.Point(201, 129)
        Me.TxtBookType.Name = "TxtBookType"
        Me.TxtBookType.Size = New System.Drawing.Size(201, 21)
        Me.TxtBookType.TabIndex = 18
        '
        'ComboBookCode
        '
        Me.ComboBookCode.Location = New System.Drawing.Point(124, 129)
        Me.ComboBookCode.Name = "ComboBookCode"
        Me.ComboBookCode.Size = New System.Drawing.Size(67, 20)
        Me.ComboBookCode.Sorted = True
        Me.ComboBookCode.TabIndex = 17
        '
        'TxtBookCode
        '
        Me.TxtBookCode.BackColor = System.Drawing.SystemColors.Info
        Me.TxtBookCode.Enabled = False
        Me.TxtBookCode.Location = New System.Drawing.Point(201, 95)
        Me.TxtBookCode.Name = "TxtBookCode"
        Me.TxtBookCode.Size = New System.Drawing.Size(201, 21)
        Me.TxtBookCode.TabIndex = 16
        '
        'ComboBookType
        '
        Me.ComboBookType.Location = New System.Drawing.Point(124, 95)
        Me.ComboBookType.Name = "ComboBookType"
        Me.ComboBookType.Size = New System.Drawing.Size(67, 20)
        Me.ComboBookType.Sorted = True
        Me.ComboBookType.TabIndex = 15
        '
        'TxtBookAuthor
        '
        Me.TxtBookAuthor.Location = New System.Drawing.Point(124, 60)
        Me.TxtBookAuthor.Name = "TxtBookAuthor"
        Me.TxtBookAuthor.Size = New System.Drawing.Size(278, 21)
        Me.TxtBookAuthor.TabIndex = 14
        '
        'Label8
        '
        Me.Label8.Location = New System.Drawing.Point(287, 207)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(71, 25)
        Me.Label8.TabIndex = 13
        Me.Label8.Text = "添加日期"
        '
        'Label7
        '
        Me.Label7.AutoSize = True
        Me.Label7.Location = New System.Drawing.Point(19, 207)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(53, 12)
        Me.Label7.TabIndex = 12
        Me.Label7.Text = "出版日期"
        '
        'BtnChange
        '
        Me.BtnChange.Location = New System.Drawing.Point(424, 172)
        Me.BtnChange.Name = "BtnChange"
        Me.BtnChange.Size = New System.Drawing.Size(152, 25)
        Me.BtnChange.TabIndex = 11
        Me.BtnChange.Text = "改变图片"
        '
        'Label6
        '
        Me.Label6.AutoSize = True
        Me.Label6.Location = New System.Drawing.Point(43, 164)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(29, 12)
        Me.Label6.TabIndex = 6
        Me.Label6.Text = "描述"
        '
        'Label5
        '
        Me.Label5.AutoSize = True
        Me.Label5.Location = New System.Drawing.Point(31, 129)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(41, 12)
        Me.Label5.TabIndex = 5
        Me.Label5.Text = "索书号"
        '
        'Label4
        '
        Me.Label4.AutoSize = True
        Me.Label4.Location = New System.Drawing.Point(19, 95)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(53, 12)
        Me.Label4.TabIndex = 4
        Me.Label4.Text = "书籍类型"
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.Location = New System.Drawing.Point(43, 60)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(29, 12)
        Me.Label3.TabIndex = 3
        Me.Label3.Text = "作者"
        '
        'TxtBookName
        '
        Me.TxtBookName.Location = New System.Drawing.Point(124, 26)
        Me.TxtBookName.Name = "TxtBookName"
        Me.TxtBookName.Size = New System.Drawing.Size(278, 21)
        Me.TxtBookName.TabIndex = 2
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.Location = New System.Drawing.Point(19, 26)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(53, 12)
        Me.Label2.TabIndex = 1
        Me.Label2.Text = "书籍名称"
        '
        'PictureBox1
        '
        Me.PictureBox1.Location = New System.Drawing.Point(422, 26)
        Me.PictureBox1.Name = "PictureBox1"
        Me.PictureBox1.Size = New System.Drawing.Size(153, 138)
        Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox1.TabIndex = 0
        Me.PictureBox1.TabStop = False
        '
        'BtnEdit
        '
        Me.BtnEdit.Location = New System.Drawing.Point(52, 314)
        Me.BtnEdit.Name = "BtnEdit"
        Me.BtnEdit.Size = New System.Drawing.Size(154, 24)
        Me.BtnEdit.TabIndex = 3
        Me.BtnEdit.Text = "编辑"
        '
        'Button2
        '
        Me.Button2.Location = New System.Drawing.Point(216, 314)
        Me.Button2.Name = "Button2"
        Me.Button2.Size = New System.Drawing.Size(153, 24)
        Me.Button2.TabIndex = 4
        Me.Button2.Text = "重置"
        '
        'Button3
        '
        Me.Button3.Location = New System.Drawing.Point(379, 314)
        Me.Button3.Name = "Button3"
        Me.Button3.Size = New System.Drawing.Size(153, 24)
        Me.Button3.TabIndex = 5
        Me.Button3.Text = "退出"
        '
        'OpenFileDialog1
        '
        '
        'BtnRead
        '
        Me.BtnRead.Location = New System.Drawing.Point(434, 14)
        Me.BtnRead.Name = "BtnRead"
        Me.BtnRead.Size = New System.Drawing.Size(151, 23)
        Me.BtnRead.TabIndex = 6
        Me.BtnRead.Text = "读取"
        Me.BtnRead.UseVisualStyleBackColor = True
        '

⌨️ 快捷键说明

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