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

    '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.
    Friend WithEvents btnSayHello As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.btnSayHello = New System.Windows.Forms.Button()
        Me.SuspendLayout()
        '
        'btnSayHello
        '
        Me.btnSayHello.Location = New System.Drawing.Point(24, 16)
        Me.btnSayHello.Name = "btnSayHello"
        Me.btnSayHello.Size = New System.Drawing.Size(144, 48)
        Me.btnSayHello.TabIndex = 0
        Me.btnSayHello.Text = "Hello world!"
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(192, 85)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnSayHello})
        Me.Name = "Form1"
        Me.Text = "Hello world! 2.0"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub btnSayHello_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSayHello.Click
        ' say hello!
        MsgBox("Hello, world!")
    End Sub

    Private Sub btnSayHello_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSayHello.MouseEnter
        ' change the text...
        btnSayHello.Text = "The mouse is here!"

    End Sub

    Private Sub btnSayHello_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSayHello.MouseLeave
        ' change the text...
        btnSayHello.Text = "The mouse has gone!"

    End Sub
End Class
