Public Class Form1
    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 btnOne As System.Windows.Forms.Button
    Friend WithEvents btnTwo As System.Windows.Forms.Button
    Friend WithEvents btnThree As System.Windows.Forms.Button

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.Container

    '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.btnOne = New System.Windows.Forms.Button()
        Me.btnTwo = New System.Windows.Forms.Button()
        Me.btnThree = New System.Windows.Forms.Button()
        Me.SuspendLayout()
        '
        'btnOne
        '
        Me.btnOne.Location = New System.Drawing.Point(8, 8)
        Me.btnOne.Name = "btnOne"
        Me.btnOne.Size = New System.Drawing.Size(124, 24)
        Me.btnOne.TabIndex = 0
        Me.btnOne.Text = "One"
        '
        'btnTwo
        '
        Me.btnTwo.Location = New System.Drawing.Point(8, 40)
        Me.btnTwo.Name = "btnTwo"
        Me.btnTwo.Size = New System.Drawing.Size(124, 24)
        Me.btnTwo.TabIndex = 0
        Me.btnTwo.Text = "Two"
        '
        'btnThree
        '
        Me.btnThree.Location = New System.Drawing.Point(8, 72)
        Me.btnThree.Name = "btnThree"
        Me.btnThree.Size = New System.Drawing.Size(124, 24)
        Me.btnThree.TabIndex = 0
        Me.btnThree.Text = "Three"
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(140, 105)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnThree, Me.btnTwo, Me.btnOne})
        Me.Name = "Form1"
        Me.Text = "Form1"
        Me.ResumeLayout(False)

    End Sub

#End Region

    ' consts...
    Public Const MyFilename As String = "c:\Wrox\Hello.txt"


    Private Sub btnOne_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOne.Click

        ' use a constant...
        MessageBox.Show("1: " & MyFilename, "Constants Demo")


    End Sub

    Private Sub btnTwo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTwo.Click

        ' use the constant again...
        MessageBox.Show("2: " & MyFilename, "Constants Demo")


    End Sub


    Private Sub btnThree_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnThree.Click

        ' one more time...
        MessageBox.Show("3: " & MyFilename, "Constants Demo")


    End Sub

End Class
