main.designer.vb
来自「wrox出版社的另一套经典的VB2005数据库编程学习书籍,收集了书中源码,郑重」· VB 代码 · 共 332 行 · 第 1/2 页
VB
332 行
Partial Public Class frmMain
Inherits System.Windows.Forms.Form
<System.Diagnostics.DebuggerNonUserCode()> _
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
End Sub
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
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.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmMain))
Me.NorthwindDataSet = New GeneratedDataGridView.NorthwindDataSet
Me.CustomersBindingSource = New System.Windows.Forms.BindingSource(Me.components)
Me.CustomersTableAdapter = New GeneratedDataGridView.NorthwindDataSetTableAdapters.CustomersTableAdapter
Me.CustomersBindingNavigator = New System.Windows.Forms.BindingNavigator(Me.components)
Me.bindingNavigatorAddNewItem = New System.Windows.Forms.ToolStripButton
Me.bindingNavigatorCountItem = New System.Windows.Forms.ToolStripLabel
Me.bindingNavigatorDeleteItem = New System.Windows.Forms.ToolStripButton
Me.bindingNavigatorMoveFirstItem = New System.Windows.Forms.ToolStripButton
Me.bindingNavigatorMovePreviousItem = New System.Windows.Forms.ToolStripButton
Me.bindingNavigatorSeparator = New System.Windows.Forms.ToolStripSeparator
Me.bindingNavigatorPositionItem = New System.Windows.Forms.ToolStripTextBox
Me.bindingNavigatorSeparator1 = New System.Windows.Forms.ToolStripSeparator
Me.bindingNavigatorMoveNextItem = New System.Windows.Forms.ToolStripButton
Me.bindingNavigatorMoveLastItem = New System.Windows.Forms.ToolStripButton
Me.bindingNavigatorSeparator2 = New System.Windows.Forms.ToolStripSeparator
Me.bindingNavigatorSaveItem = New System.Windows.Forms.ToolStripButton
Me.CustomersDataGridView = New System.Windows.Forms.DataGridView
Me.CustomerID = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.CompanyName = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.ContactName = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.ContactTitle = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.Address = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.City = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.Region = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.PostalCode = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.Country = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.Phone = New System.Windows.Forms.DataGridViewTextBoxColumn
Me.Fax = New System.Windows.Forms.DataGridViewTextBoxColumn
CType(Me.NorthwindDataSet, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.CustomersBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.CustomersBindingNavigator, System.ComponentModel.ISupportInitialize).BeginInit()
Me.CustomersBindingNavigator.SuspendLayout()
CType(Me.CustomersDataGridView, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'NorthwindDataSet
'
Me.NorthwindDataSet.DataSetName = "NorthwindDataSet"
'
'CustomersBindingSource
'
Me.CustomersBindingSource.DataMember = "Customers"
Me.CustomersBindingSource.DataSource = Me.NorthwindDataSet
'
'CustomersTableAdapter
'
Me.CustomersTableAdapter.ClearBeforeFill = True
'
'CustomersBindingNavigator
'
Me.CustomersBindingNavigator.AddNewItem = Me.bindingNavigatorAddNewItem
Me.CustomersBindingNavigator.BindingSource = Me.CustomersBindingSource
Me.CustomersBindingNavigator.CountItem = Me.bindingNavigatorCountItem
Me.CustomersBindingNavigator.DeleteItem = Me.bindingNavigatorDeleteItem
Me.CustomersBindingNavigator.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.bindingNavigatorMoveFirstItem, Me.bindingNavigatorMovePreviousItem, Me.bindingNavigatorSeparator, Me.bindingNavigatorPositionItem, Me.bindingNavigatorCountItem, Me.bindingNavigatorSeparator1, Me.bindingNavigatorMoveNextItem, Me.bindingNavigatorMoveLastItem, Me.bindingNavigatorSeparator2, Me.bindingNavigatorAddNewItem, Me.bindingNavigatorDeleteItem, Me.bindingNavigatorSaveItem})
Me.CustomersBindingNavigator.Location = New System.Drawing.Point(0, 0)
Me.CustomersBindingNavigator.MoveFirstItem = Me.bindingNavigatorMoveFirstItem
Me.CustomersBindingNavigator.MoveLastItem = Me.bindingNavigatorMoveLastItem
Me.CustomersBindingNavigator.MoveNextItem = Me.bindingNavigatorMoveNextItem
Me.CustomersBindingNavigator.MovePreviousItem = Me.bindingNavigatorMovePreviousItem
Me.CustomersBindingNavigator.Name = "CustomersBindingNavigator"
Me.CustomersBindingNavigator.PositionItem = Me.bindingNavigatorPositionItem
Me.CustomersBindingNavigator.Size = New System.Drawing.Size(574, 25)
Me.CustomersBindingNavigator.TabIndex = 0
Me.CustomersBindingNavigator.Text = "BindingNavigator1"
'
'bindingNavigatorAddNewItem
'
Me.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
Me.bindingNavigatorAddNewItem.Image = CType(resources.GetObject("bindingNavigatorAddNewItem.Image"), System.Drawing.Image)
Me.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem"
Me.bindingNavigatorAddNewItem.Size = New System.Drawing.Size(23, 22)
Me.bindingNavigatorAddNewItem.Text = "Add new"
'
'bindingNavigatorCountItem
'
Me.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"
Me.bindingNavigatorCountItem.Size = New System.Drawing.Size(36, 22)
Me.bindingNavigatorCountItem.Text = "of {0}"
Me.bindingNavigatorCountItem.ToolTipText = "Total number of items"
'
'bindingNavigatorDeleteItem
'
Me.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
Me.bindingNavigatorDeleteItem.Image = CType(resources.GetObject("bindingNavigatorDeleteItem.Image"), System.Drawing.Image)
Me.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem"
Me.bindingNavigatorDeleteItem.Size = New System.Drawing.Size(23, 22)
Me.bindingNavigatorDeleteItem.Text = "Delete"
'
'bindingNavigatorMoveFirstItem
'
Me.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
Me.bindingNavigatorMoveFirstItem.Image = CType(resources.GetObject("bindingNavigatorMoveFirstItem.Image"), System.Drawing.Image)
Me.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"
Me.bindingNavigatorMoveFirstItem.Size = New System.Drawing.Size(23, 22)
Me.bindingNavigatorMoveFirstItem.Text = "Move first"
'
'bindingNavigatorMovePreviousItem
'
Me.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
Me.bindingNavigatorMovePreviousItem.Image = CType(resources.GetObject("bindingNavigatorMovePreviousItem.Image"), System.Drawing.Image)
Me.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"
Me.bindingNavigatorMovePreviousItem.Size = New System.Drawing.Size(23, 22)
Me.bindingNavigatorMovePreviousItem.Text = "Move previous"
'
'bindingNavigatorSeparator
'
Me.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"
Me.bindingNavigatorSeparator.Size = New System.Drawing.Size(6, 25)
'
'bindingNavigatorPositionItem
'
Me.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem"
Me.bindingNavigatorPositionItem.Size = New System.Drawing.Size(50, 25)
Me.bindingNavigatorPositionItem.Text = "0"
Me.bindingNavigatorPositionItem.ToolTipText = "Current position"
'
'bindingNavigatorSeparator1
'
Me.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"
Me.bindingNavigatorSeparator1.Size = New System.Drawing.Size(6, 25)
'
'bindingNavigatorMoveNextItem
'
Me.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
Me.bindingNavigatorMoveNextItem.Image = CType(resources.GetObject("bindingNavigatorMoveNextItem.Image"), System.Drawing.Image)
Me.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"
Me.bindingNavigatorMoveNextItem.Size = New System.Drawing.Size(23, 22)
Me.bindingNavigatorMoveNextItem.Text = "Move next"
'
'bindingNavigatorMoveLastItem
'
Me.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
Me.bindingNavigatorMoveLastItem.Image = CType(resources.GetObject("bindingNavigatorMoveLastItem.Image"), System.Drawing.Image)
Me.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?