main.designer.vb
来自「wrox出版社的另一套经典的VB2005数据库编程学习书籍,收集了书中源码,郑重」· VB 代码 · 共 129 行
VB
129 行
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.chkUseOdbc = New System.Windows.Forms.CheckBox
Me.txtXML = New System.Windows.Forms.TextBox
Me.lstEmployees = New System.Windows.Forms.ListBox
Me.lstShippers = New System.Windows.Forms.ListBox
Me.lblRowset1 = New System.Windows.Forms.Label
Me.lblRowset2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'chkUseOdbc
'
Me.chkUseOdbc.Location = New System.Drawing.Point(15, 82)
Me.chkUseOdbc.Name = "chkUseOdbc"
Me.chkUseOdbc.Size = New System.Drawing.Size(147, 20)
Me.chkUseOdbc.TabIndex = 19
Me.chkUseOdbc.Text = "Use OdbcDataReader"
'
'txtXML
'
Me.txtXML.Location = New System.Drawing.Point(14, 187)
Me.txtXML.Multiline = True
Me.txtXML.Name = "txtXML"
Me.txtXML.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
Me.txtXML.Size = New System.Drawing.Size(316, 146)
Me.txtXML.TabIndex = 17
'
'lstEmployees
'
Me.lstEmployees.FormattingEnabled = True
Me.lstEmployees.Location = New System.Drawing.Point(185, 32)
Me.lstEmployees.Name = "lstEmployees"
Me.lstEmployees.Size = New System.Drawing.Size(145, 121)
Me.lstEmployees.TabIndex = 14
'
'lstShippers
'
Me.lstShippers.FormattingEnabled = True
Me.lstShippers.Location = New System.Drawing.Point(15, 32)
Me.lstShippers.Name = "lstShippers"
Me.lstShippers.Size = New System.Drawing.Size(145, 43)
Me.lstShippers.TabIndex = 13
'
'lblRowset1
'
Me.lblRowset1.Font = New System.Drawing.Font("Verdana", 8.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblRowset1.Location = New System.Drawing.Point(15, 14)
Me.lblRowset1.Name = "lblRowset1"
Me.lblRowset1.Size = New System.Drawing.Size(166, 20)
Me.lblRowset1.TabIndex = 15
Me.lblRowset1.Text = "DataReader Rowset 1"
'
'lblRowset2
'
Me.lblRowset2.Font = New System.Drawing.Font("Verdana", 8.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblRowset2.Location = New System.Drawing.Point(185, 14)
Me.lblRowset2.Name = "lblRowset2"
Me.lblRowset2.Size = New System.Drawing.Size(155, 20)
Me.lblRowset2.TabIndex = 16
Me.lblRowset2.Text = "DataReader Rowset 2"
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("Verdana", 8.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.Location = New System.Drawing.Point(15, 166)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(211, 20)
Me.Label1.TabIndex = 18
Me.Label1.Text = "SQLXML 4.0 Native XmlReader"
'
'frmMain
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(353, 352)
Me.Controls.Add(Me.chkUseOdbc)
Me.Controls.Add(Me.txtXML)
Me.Controls.Add(Me.lstEmployees)
Me.Controls.Add(Me.lstShippers)
Me.Controls.Add(Me.lblRowset1)
Me.Controls.Add(Me.lblRowset2)
Me.Controls.Add(Me.Label1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.MaximizeBox = False
Me.Name = "frmMain"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "OLE DB Data Objects Demonstration"
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents chkUseOdbc As System.Windows.Forms.CheckBox
Friend WithEvents txtXML As System.Windows.Forms.TextBox
Friend WithEvents lstEmployees As System.Windows.Forms.ListBox
Friend WithEvents lstShippers As System.Windows.Forms.ListBox
Friend WithEvents lblRowset1 As System.Windows.Forms.Label
Friend WithEvents lblRowset2 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
End Class
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?