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

📄 宿舍管理.vb

📁 这是本人设计的一个软件
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports System.Data.SqlClient
Public Class 宿舍管理
    Inherits System.Windows.Forms.Form
    Dim sqlstr As String
#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 DataGrid1 As System.Windows.Forms.DataGrid
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents tb_roomtel As System.Windows.Forms.TextBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents tb_roomid As System.Windows.Forms.TextBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents tb_money As System.Windows.Forms.TextBox
    Friend WithEvents tb_level As System.Windows.Forms.TextBox
    Friend WithEvents tb_roomnum As System.Windows.Forms.TextBox
    Friend WithEvents tb_louname As System.Windows.Forms.TextBox
    Friend WithEvents tb_roommax As System.Windows.Forms.TextBox
    Friend WithEvents b_close As System.Windows.Forms.Button
    Friend WithEvents B_del As System.Windows.Forms.Button
    Friend WithEvents B_xg As System.Windows.Forms.Button
    Friend WithEvents b_add As System.Windows.Forms.Button
    Friend WithEvents roomidbackup As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.DataGrid1 = New System.Windows.Forms.DataGrid
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.Label7 = New System.Windows.Forms.Label
        Me.tb_roomtel = New System.Windows.Forms.TextBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.tb_roomid = New System.Windows.Forms.TextBox
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label1 = New System.Windows.Forms.Label
        Me.b_close = New System.Windows.Forms.Button
        Me.B_del = New System.Windows.Forms.Button
        Me.B_xg = New System.Windows.Forms.Button
        Me.tb_money = New System.Windows.Forms.TextBox
        Me.tb_level = New System.Windows.Forms.TextBox
        Me.tb_roomnum = New System.Windows.Forms.TextBox
        Me.tb_louname = New System.Windows.Forms.TextBox
        Me.tb_roommax = New System.Windows.Forms.TextBox
        Me.b_add = New System.Windows.Forms.Button
        Me.roomidbackup = New System.Windows.Forms.TextBox
        CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        'DataGrid1
        '
        Me.DataGrid1.AlternatingBackColor = System.Drawing.Color.Lavender
        Me.DataGrid1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
                    Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.DataGrid1.BackColor = System.Drawing.Color.WhiteSmoke
        Me.DataGrid1.BackgroundColor = System.Drawing.Color.LightGray
        Me.DataGrid1.BorderStyle = System.Windows.Forms.BorderStyle.None
        Me.DataGrid1.CaptionBackColor = System.Drawing.Color.LightSteelBlue
        Me.DataGrid1.CaptionForeColor = System.Drawing.Color.MidnightBlue
        Me.DataGrid1.DataMember = ""
        Me.DataGrid1.FlatMode = True
        Me.DataGrid1.Font = New System.Drawing.Font("Tahoma", 8.0!)
        Me.DataGrid1.ForeColor = System.Drawing.Color.MidnightBlue
        Me.DataGrid1.GridLineColor = System.Drawing.Color.Gainsboro
        Me.DataGrid1.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None
        Me.DataGrid1.HeaderBackColor = System.Drawing.Color.MidnightBlue
        Me.DataGrid1.HeaderFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
        Me.DataGrid1.HeaderForeColor = System.Drawing.Color.WhiteSmoke
        Me.DataGrid1.LinkColor = System.Drawing.Color.Teal
        Me.DataGrid1.Location = New System.Drawing.Point(0, 0)
        Me.DataGrid1.Name = "DataGrid1"
        Me.DataGrid1.ParentRowsBackColor = System.Drawing.Color.Gainsboro
        Me.DataGrid1.ParentRowsForeColor = System.Drawing.Color.MidnightBlue
        Me.DataGrid1.SelectionBackColor = System.Drawing.Color.CadetBlue
        Me.DataGrid1.SelectionForeColor = System.Drawing.Color.WhiteSmoke
        Me.DataGrid1.Size = New System.Drawing.Size(480, 224)
        Me.DataGrid1.TabIndex = 20
        '
        'GroupBox1
        '
        Me.GroupBox1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.GroupBox1.BackColor = System.Drawing.SystemColors.Control
        Me.GroupBox1.Controls.Add(Me.Label7)
        Me.GroupBox1.Controls.Add(Me.tb_roomtel)
        Me.GroupBox1.Controls.Add(Me.Label6)
        Me.GroupBox1.Controls.Add(Me.Label5)
        Me.GroupBox1.Controls.Add(Me.Label4)
        Me.GroupBox1.Controls.Add(Me.tb_roomid)
        Me.GroupBox1.Controls.Add(Me.Label3)
        Me.GroupBox1.Controls.Add(Me.Label2)
        Me.GroupBox1.Controls.Add(Me.Label1)
        Me.GroupBox1.Controls.Add(Me.b_close)
        Me.GroupBox1.Controls.Add(Me.B_del)
        Me.GroupBox1.Controls.Add(Me.B_xg)
        Me.GroupBox1.Controls.Add(Me.tb_money)
        Me.GroupBox1.Controls.Add(Me.tb_level)
        Me.GroupBox1.Controls.Add(Me.tb_roomnum)
        Me.GroupBox1.Controls.Add(Me.tb_louname)
        Me.GroupBox1.Controls.Add(Me.tb_roommax)
        Me.GroupBox1.Controls.Add(Me.b_add)
        Me.GroupBox1.Controls.Add(Me.roomidbackup)
        Me.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
        Me.GroupBox1.Location = New System.Drawing.Point(0, 224)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(480, 144)
        Me.GroupBox1.TabIndex = 19
        Me.GroupBox1.TabStop = False
        '
        'Label7
        '
        Me.Label7.Location = New System.Drawing.Point(232, 86)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(72, 16)
        Me.Label7.TabIndex = 28
        Me.Label7.Text = "宿舍电话:"
        '
        'tb_roomtel
        '
        Me.tb_roomtel.Location = New System.Drawing.Point(312, 81)
        Me.tb_roomtel.MaxLength = 13
        Me.tb_roomtel.Name = "tb_roomtel"
        Me.tb_roomtel.Size = New System.Drawing.Size(120, 21)
        Me.tb_roomtel.TabIndex = 6
        Me.tb_roomtel.Text = ""
        '
        'Label6
        '
        Me.Label6.Location = New System.Drawing.Point(8, 86)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(96, 16)
        Me.Label6.TabIndex = 26
        Me.Label6.Text = "宿舍最大人数:"
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(232, 24)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(72, 16)
        Me.Label5.TabIndex = 25
        Me.Label5.Text = "所在楼层:"
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(32, 117)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(72, 16)
        Me.Label4.TabIndex = 24
        Me.Label4.Text = "宿舍编号:"
        '
        'tb_roomid
        '
        Me.tb_roomid.Location = New System.Drawing.Point(104, 112)
        Me.tb_roomid.Name = "tb_roomid"
        Me.tb_roomid.Size = New System.Drawing.Size(120, 21)
        Me.tb_roomid.TabIndex = 7
        Me.tb_roomid.Text = ""
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(232, 55)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(72, 16)
        Me.Label3.TabIndex = 22
        Me.Label3.Text = "住宿费用:"
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(32, 56)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(64, 16)
        Me.Label2.TabIndex = 21
        Me.Label2.Text = "宿 舍 号:"
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(24, 24)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(80, 16)
        Me.Label1.TabIndex = 20
        Me.Label1.Text = "宿舍楼名称:"
        '
        'b_close
        '
        Me.b_close.Location = New System.Drawing.Point(400, 112)
        Me.b_close.Name = "b_close"
        Me.b_close.Size = New System.Drawing.Size(56, 23)
        Me.b_close.TabIndex = 11
        Me.b_close.Text = "关闭"
        '
        'B_del
        '
        Me.B_del.Location = New System.Drawing.Point(344, 112)
        Me.B_del.Name = "B_del"
        Me.B_del.Size = New System.Drawing.Size(56, 23)
        Me.B_del.TabIndex = 10
        Me.B_del.Text = "删除"
        '
        'B_xg
        '
        Me.B_xg.Location = New System.Drawing.Point(288, 112)
        Me.B_xg.Name = "B_xg"
        Me.B_xg.Size = New System.Drawing.Size(56, 23)
        Me.B_xg.TabIndex = 9
        Me.B_xg.Text = "修改"
        '
        'tb_money
        '
        Me.tb_money.Location = New System.Drawing.Point(312, 50)
        Me.tb_money.MaxLength = 4
        Me.tb_money.Name = "tb_money"
        Me.tb_money.Size = New System.Drawing.Size(120, 21)
        Me.tb_money.TabIndex = 4
        Me.tb_money.Text = ""
        '
        'tb_level

⌨️ 快捷键说明

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