📄 form4.vb
字号:
Public Class Form4
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 DataGrid1 As System.Windows.Forms.DataGrid
Friend WithEvents Panel1 As System.Windows.Forms.Panel
Friend WithEvents Label24 As System.Windows.Forms.Label
Friend WithEvents Label25 As System.Windows.Forms.Label
Friend WithEvents Label21 As System.Windows.Forms.Label
Friend WithEvents Label18 As System.Windows.Forms.Label
Friend WithEvents Label19 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents TxtLocation As System.Windows.Forms.Label
Friend WithEvents Button4 As System.Windows.Forms.Button
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox
Friend WithEvents ComboBox2 As System.Windows.Forms.ComboBox
Friend WithEvents ComboBox3 As System.Windows.Forms.ComboBox
Friend WithEvents ComboBox4 As System.Windows.Forms.ComboBox
Friend WithEvents Button9 As System.Windows.Forms.Button
Friend WithEvents Button10 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents OleDbDataAdapter1 As System.Data.OleDb.OleDbDataAdapter
Friend WithEvents Ds21 As 学生公寓管理系统.Ds2
Friend WithEvents Button7 As System.Windows.Forms.Button
Friend WithEvents Button8 As System.Windows.Forms.Button
Friend WithEvents Button6 As System.Windows.Forms.Button
Friend WithEvents Button5 As System.Windows.Forms.Button
Friend WithEvents OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbInsertCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbUpdateCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbDeleteCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbConnection1 As System.Data.OleDb.OleDbConnection
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.DataGrid1 = New System.Windows.Forms.DataGrid
Me.Ds21 = New 学生公寓管理系统.Ds2
Me.Panel1 = New System.Windows.Forms.Panel
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.Button10 = New System.Windows.Forms.Button
Me.Button9 = New System.Windows.Forms.Button
Me.ComboBox4 = New System.Windows.Forms.ComboBox
Me.ComboBox3 = New System.Windows.Forms.ComboBox
Me.ComboBox2 = New System.Windows.Forms.ComboBox
Me.ComboBox1 = New System.Windows.Forms.ComboBox
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.TxtLocation = New System.Windows.Forms.Label
Me.Button4 = New System.Windows.Forms.Button
Me.Button3 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.Button1 = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.Label18 = New System.Windows.Forms.Label
Me.Label19 = New System.Windows.Forms.Label
Me.Label24 = New System.Windows.Forms.Label
Me.Label25 = New System.Windows.Forms.Label
Me.Label21 = New System.Windows.Forms.Label
Me.Button7 = New System.Windows.Forms.Button
Me.Button8 = New System.Windows.Forms.Button
Me.Button6 = New System.Windows.Forms.Button
Me.Button5 = New System.Windows.Forms.Button
Me.OleDbDataAdapter1 = New System.Data.OleDb.OleDbDataAdapter
Me.OleDbDeleteCommand1 = New System.Data.OleDb.OleDbCommand
Me.OleDbConnection1 = New System.Data.OleDb.OleDbConnection
Me.OleDbInsertCommand1 = New System.Data.OleDb.OleDbCommand
Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand
Me.OleDbUpdateCommand1 = New System.Data.OleDb.OleDbCommand
CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.Ds21, System.ComponentModel.ISupportInitialize).BeginInit()
Me.Panel1.SuspendLayout()
Me.SuspendLayout()
'
'DataGrid1
'
Me.DataGrid1.DataMember = "住宿登记"
Me.DataGrid1.DataSource = Me.Ds21
Me.DataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.DataGrid1.Location = New System.Drawing.Point(8, -8)
Me.DataGrid1.Name = "DataGrid1"
Me.DataGrid1.ReadOnly = True
Me.DataGrid1.Size = New System.Drawing.Size(592, 224)
Me.DataGrid1.TabIndex = 0
'
'Ds21
'
Me.Ds21.DataSetName = "Ds2"
Me.Ds21.Locale = New System.Globalization.CultureInfo("zh-CN")
'
'Panel1
'
Me.Panel1.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.Panel1.BackColor = System.Drawing.Color.Silver
Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.Panel1.Controls.Add(Me.TextBox1)
Me.Panel1.Controls.Add(Me.Button10)
Me.Panel1.Controls.Add(Me.Button9)
Me.Panel1.Controls.Add(Me.ComboBox4)
Me.Panel1.Controls.Add(Me.ComboBox3)
Me.Panel1.Controls.Add(Me.ComboBox2)
Me.Panel1.Controls.Add(Me.ComboBox1)
Me.Panel1.Controls.Add(Me.TextBox2)
Me.Panel1.Controls.Add(Me.TxtLocation)
Me.Panel1.Controls.Add(Me.Button4)
Me.Panel1.Controls.Add(Me.Button3)
Me.Panel1.Controls.Add(Me.Button2)
Me.Panel1.Controls.Add(Me.Button1)
Me.Panel1.Controls.Add(Me.Label1)
Me.Panel1.Controls.Add(Me.Label18)
Me.Panel1.Controls.Add(Me.Label19)
Me.Panel1.Controls.Add(Me.Label24)
Me.Panel1.Controls.Add(Me.Label25)
Me.Panel1.Controls.Add(Me.Label21)
Me.Panel1.Controls.Add(Me.Button7)
Me.Panel1.Controls.Add(Me.Button8)
Me.Panel1.Controls.Add(Me.Button6)
Me.Panel1.Controls.Add(Me.Button5)
Me.Panel1.Location = New System.Drawing.Point(8, 224)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(592, 152)
Me.Panel1.TabIndex = 1
'
'TextBox1
'
Me.TextBox1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds21, "住宿登记.学号"))
Me.TextBox1.Location = New System.Drawing.Point(64, 16)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(112, 21)
Me.TextBox1.TabIndex = 0
Me.TextBox1.Text = ""
'
'Button10
'
Me.Button10.BackColor = System.Drawing.SystemColors.Control
Me.Button10.Location = New System.Drawing.Point(508, 104)
Me.Button10.Name = "Button10"
Me.Button10.Size = New System.Drawing.Size(60, 32)
Me.Button10.TabIndex = 15
Me.Button10.Text = "退出"
'
'Button9
'
Me.Button9.BackColor = System.Drawing.SystemColors.Control
Me.Button9.Location = New System.Drawing.Point(448, 104)
Me.Button9.Name = "Button9"
Me.Button9.Size = New System.Drawing.Size(60, 32)
Me.Button9.TabIndex = 14
Me.Button9.Text = "加载"
'
'ComboBox4
'
Me.ComboBox4.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds21, "住宿登记.床号"))
Me.ComboBox4.Items.AddRange(New Object() {"1", "2", "3", "4"})
Me.ComboBox4.Location = New System.Drawing.Point(456, 56)
Me.ComboBox4.Name = "ComboBox4"
Me.ComboBox4.Size = New System.Drawing.Size(112, 20)
Me.ComboBox4.TabIndex = 5
'
'ComboBox3
'
Me.ComboBox3.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds21, "住宿登记.房号"))
Me.ComboBox3.Location = New System.Drawing.Point(256, 56)
Me.ComboBox3.Name = "ComboBox3"
Me.ComboBox3.Size = New System.Drawing.Size(112, 20)
Me.ComboBox3.TabIndex = 4
'
'ComboBox2
'
Me.ComboBox2.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds21, "住宿登记.栋号"))
Me.ComboBox2.Location = New System.Drawing.Point(64, 56)
Me.ComboBox2.Name = "ComboBox2"
Me.ComboBox2.Size = New System.Drawing.Size(112, 20)
Me.ComboBox2.TabIndex = 3
'
'ComboBox1
'
Me.ComboBox1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds21, "住宿登记.性别"))
Me.ComboBox1.Items.AddRange(New Object() {"男", "女"})
Me.ComboBox1.Location = New System.Drawing.Point(456, 16)
Me.ComboBox1.Name = "ComboBox1"
Me.ComboBox1.Size = New System.Drawing.Size(112, 20)
Me.ComboBox1.TabIndex = 2
'
'TextBox2
'
Me.TextBox2.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.Ds21, "住宿登记.姓名"))
Me.TextBox2.Location = New System.Drawing.Point(256, 16)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(112, 21)
Me.TextBox2.TabIndex = 1
Me.TextBox2.Text = ""
'
'TxtLocation
'
Me.TxtLocation.AutoSize = True
Me.TxtLocation.BackColor = System.Drawing.Color.Silver
Me.TxtLocation.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.TxtLocation.Location = New System.Drawing.Point(88, 112)
Me.TxtLocation.Name = "TxtLocation"
Me.TxtLocation.Size = New System.Drawing.Size(0, 22)
Me.TxtLocation.TabIndex = 72
'
'Button4
'
Me.Button4.BackColor = System.Drawing.SystemColors.Control
Me.Button4.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Button4.Location = New System.Drawing.Point(176, 104)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(32, 32)
Me.Button4.TabIndex = 9
Me.Button4.Text = ">|"
'
'Button3
'
Me.Button3.BackColor = System.Drawing.SystemColors.Control
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -