Public Class MainForm
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    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
    Friend WithEvents btnSample1 As System.Windows.Forms.Button
    Friend WithEvents btnSample2 As System.Windows.Forms.Button
    Friend WithEvents btnSample3 As System.Windows.Forms.Button
    Friend WithEvents btnSample4 As System.Windows.Forms.Button
    Friend WithEvents btnClose As System.Windows.Forms.Button

    '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.btnSample1 = New System.Windows.Forms.Button
        Me.btnSample2 = New System.Windows.Forms.Button
        Me.btnSample3 = New System.Windows.Forms.Button
        Me.btnSample4 = New System.Windows.Forms.Button
        Me.btnClose = New System.Windows.Forms.Button
        Me.SuspendLayout()
        '
        'btnSample1
        '
        Me.btnSample1.Location = New System.Drawing.Point(16, 16)
        Me.btnSample1.Name = "btnSample1"
        Me.btnSample1.Size = New System.Drawing.Size(336, 23)
        Me.btnSample1.TabIndex = 1
        Me.btnSample1.Text = " Read-only table filled with the resultset of an OleDbCommand"
        Me.btnSample1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'btnSample2
        '
        Me.btnSample2.Location = New System.Drawing.Point(16, 48)
        Me.btnSample2.Name = "btnSample2"
        Me.btnSample2.Size = New System.Drawing.Size(336, 23)
        Me.btnSample2.TabIndex = 2
        Me.btnSample2.Text = "Updateable table filled with the resultset of an OleDbCommand"
        Me.btnSample2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'btnSample3
        '
        Me.btnSample3.Location = New System.Drawing.Point(16, 80)
        Me.btnSample3.Name = "btnSample3"
        Me.btnSample3.Size = New System.Drawing.Size(336, 23)
        Me.btnSample3.TabIndex = 3
        Me.btnSample3.Text = "Updateable table based on an ADO.NET data set"
        Me.btnSample3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'btnSample4
        '
        Me.btnSample4.Location = New System.Drawing.Point(16, 112)
        Me.btnSample4.Name = "btnSample4"
        Me.btnSample4.Size = New System.Drawing.Size(336, 23)
        Me.btnSample4.TabIndex = 4
        Me.btnSample4.Text = "Updateable table based on an XML file"
        Me.btnSample4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'btnClose
        '
        Me.btnClose.Location = New System.Drawing.Point(144, 144)
        Me.btnClose.Name = "btnClose"
        Me.btnClose.Size = New System.Drawing.Size(75, 23)
        Me.btnClose.TabIndex = 0
        Me.btnClose.Text = "Close"
        '
        'MainForm
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 14)
        Me.ClientSize = New System.Drawing.Size(378, 177)
        Me.Controls.Add(Me.btnClose)
        Me.Controls.Add(Me.btnSample4)
        Me.Controls.Add(Me.btnSample3)
        Me.Controls.Add(Me.btnSample2)
        Me.Controls.Add(Me.btnSample1)
        Me.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
        Me.Name = "MainForm"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Unbound Tables"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClose.Click
        Close()
    End Sub

    Private Sub btnSample1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSample1.Click
        Dim frm As Form1 = New Form1()
        frm.ShowDialog()
    End Sub

    Private Sub btnSample2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSample2.Click
        Dim frm As Form2 = New Form2()
        frm.ShowDialog()
    End Sub

    Private Sub btnSample3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSample3.Click
        Dim frm As Form3 = New Form3()
        frm.ShowDialog()
    End Sub

    Private Sub btnSample4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSample4.Click
        Dim frm As Form4 = New Form4()
        frm.ShowDialog()
    End Sub
End Class
