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

📄 frmbookplace.vb

📁 The Management Information System of Library using .NET
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports System.Data.SqlClient
Public Class frmBookPlace
    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 GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
    Friend WithEvents Panel1 As System.Windows.Forms.Panel
    Friend WithEvents dbgBookPlace As System.Windows.Forms.DataGrid
    Friend WithEvents txtBook_place As library.mytextbox
    Friend WithEvents txtPlace_remarks As library.mytextbox
    Friend WithEvents btnAdd As System.Windows.Forms.Button
    Friend WithEvents btnEdit As System.Windows.Forms.Button
    Friend WithEvents btnDelete As System.Windows.Forms.Button
    Friend WithEvents SqlSelectCommand1 As System.Data.SqlClient.SqlCommand
    Friend WithEvents SqlInsertCommand1 As System.Data.SqlClient.SqlCommand
    Friend WithEvents SqlUpdateCommand1 As System.Data.SqlClient.SqlCommand
    Friend WithEvents SqlDeleteCommand1 As System.Data.SqlClient.SqlCommand
    Friend WithEvents cn As System.Data.SqlClient.SqlConnection
    Friend WithEvents da As System.Data.SqlClient.SqlDataAdapter
    Friend WithEvents btnReset As System.Windows.Forms.Button
    Friend WithEvents grp1 As System.Windows.Forms.GroupBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.grp1 = New System.Windows.Forms.GroupBox
        Me.dbgBookPlace = New System.Windows.Forms.DataGrid
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.txtBook_place = New library.mytextbox
        Me.GroupBox3 = New System.Windows.Forms.GroupBox
        Me.txtPlace_remarks = New library.mytextbox
        Me.Panel1 = New System.Windows.Forms.Panel
        Me.btnDelete = New System.Windows.Forms.Button
        Me.btnEdit = New System.Windows.Forms.Button
        Me.btnAdd = New System.Windows.Forms.Button
        Me.SqlSelectCommand1 = New System.Data.SqlClient.SqlCommand
        Me.cn = New System.Data.SqlClient.SqlConnection
        Me.SqlInsertCommand1 = New System.Data.SqlClient.SqlCommand
        Me.SqlUpdateCommand1 = New System.Data.SqlClient.SqlCommand
        Me.SqlDeleteCommand1 = New System.Data.SqlClient.SqlCommand
        Me.da = New System.Data.SqlClient.SqlDataAdapter
        Me.btnReset = New System.Windows.Forms.Button
        Me.grp1.SuspendLayout()
        CType(Me.dbgBookPlace, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.GroupBox2.SuspendLayout()
        Me.GroupBox3.SuspendLayout()
        Me.Panel1.SuspendLayout()
        Me.SuspendLayout()
        '
        'grp1
        '
        Me.grp1.Controls.Add(Me.dbgBookPlace)
        Me.grp1.Dock = System.Windows.Forms.DockStyle.Left
        Me.grp1.Location = New System.Drawing.Point(0, 0)
        Me.grp1.Name = "grp1"
        Me.grp1.Size = New System.Drawing.Size(256, 245)
        Me.grp1.TabIndex = 0
        Me.grp1.TabStop = False
        Me.grp1.Text = "图书存放位置列表"
        '
        'dbgBookPlace
        '
        Me.dbgBookPlace.AllowSorting = False
        Me.dbgBookPlace.BackgroundColor = System.Drawing.SystemColors.Info
        Me.dbgBookPlace.CaptionVisible = False
        Me.dbgBookPlace.ColumnHeadersVisible = False
        Me.dbgBookPlace.DataMember = ""
        Me.dbgBookPlace.Dock = System.Windows.Forms.DockStyle.Fill
        Me.dbgBookPlace.HeaderForeColor = System.Drawing.SystemColors.ControlText
        Me.dbgBookPlace.Location = New System.Drawing.Point(3, 17)
        Me.dbgBookPlace.Name = "dbgBookPlace"
        Me.dbgBookPlace.ReadOnly = True
        Me.dbgBookPlace.Size = New System.Drawing.Size(250, 225)
        Me.dbgBookPlace.TabIndex = 0
        '
        'GroupBox2
        '
        Me.GroupBox2.Controls.Add(Me.txtBook_place)
        Me.GroupBox2.Dock = System.Windows.Forms.DockStyle.Top
        Me.GroupBox2.Location = New System.Drawing.Point(256, 0)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(248, 40)
        Me.GroupBox2.TabIndex = 2
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "图书存放位置"
        '
        'txtBook_place
        '
        Me.txtBook_place.Dock = System.Windows.Forms.DockStyle.Fill
        Me.txtBook_place.Location = New System.Drawing.Point(3, 17)
        Me.txtBook_place.Name = "txtBook_place"
        Me.txtBook_place.Size = New System.Drawing.Size(242, 21)
        Me.txtBook_place.TabIndex = 0
        Me.txtBook_place.Text = "TextBox1"
        '
        'GroupBox3
        '
        Me.GroupBox3.Controls.Add(Me.txtPlace_remarks)
        Me.GroupBox3.Dock = System.Windows.Forms.DockStyle.Fill
        Me.GroupBox3.Location = New System.Drawing.Point(256, 40)
        Me.GroupBox3.Name = "GroupBox3"
        Me.GroupBox3.Size = New System.Drawing.Size(248, 149)
        Me.GroupBox3.TabIndex = 3
        Me.GroupBox3.TabStop = False
        Me.GroupBox3.Text = "图书存放位置具体说明"
        '
        'txtPlace_remarks
        '
        Me.txtPlace_remarks.Dock = System.Windows.Forms.DockStyle.Fill
        Me.txtPlace_remarks.Location = New System.Drawing.Point(3, 17)
        Me.txtPlace_remarks.Multiline = True
        Me.txtPlace_remarks.Name = "txtPlace_remarks"
        Me.txtPlace_remarks.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
        Me.txtPlace_remarks.Size = New System.Drawing.Size(242, 129)
        Me.txtPlace_remarks.TabIndex = 0
        Me.txtPlace_remarks.Text = "TextBox2"
        '
        'Panel1
        '
        Me.Panel1.Controls.Add(Me.btnReset)
        Me.Panel1.Controls.Add(Me.btnDelete)
        Me.Panel1.Controls.Add(Me.btnEdit)
        Me.Panel1.Controls.Add(Me.btnAdd)
        Me.Panel1.Dock = System.Windows.Forms.DockStyle.Bottom
        Me.Panel1.Location = New System.Drawing.Point(256, 189)
        Me.Panel1.Name = "Panel1"
        Me.Panel1.Size = New System.Drawing.Size(248, 56)
        Me.Panel1.TabIndex = 4
        '
        'btnDelete
        '
        Me.btnDelete.Location = New System.Drawing.Point(124, 16)
        Me.btnDelete.Name = "btnDelete"
        Me.btnDelete.Size = New System.Drawing.Size(56, 24)
        Me.btnDelete.TabIndex = 2
        Me.btnDelete.Text = "删除"
        '
        'btnEdit
        '
        Me.btnEdit.Location = New System.Drawing.Point(68, 16)
        Me.btnEdit.Name = "btnEdit"
        Me.btnEdit.Size = New System.Drawing.Size(56, 24)
        Me.btnEdit.TabIndex = 1
        Me.btnEdit.Text = "修改"
        '
        'btnAdd
        '
        Me.btnAdd.Location = New System.Drawing.Point(12, 16)
        Me.btnAdd.Name = "btnAdd"
        Me.btnAdd.Size = New System.Drawing.Size(56, 24)
        Me.btnAdd.TabIndex = 0
        Me.btnAdd.Text = "添加"
        '
        'SqlSelectCommand1
        '
        Me.SqlSelectCommand1.CommandText = "SELECT Book_place, Place_remarks FROM place"

⌨️ 快捷键说明

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