Public Class HelloForm
  Inherits System.Windows.Forms.Form

  Private Sub init()
    lbHi.Text = "..."
  End Sub
#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
    init()
  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 txHi As System.Windows.Forms.TextBox
  Friend WithEvents lbHi As System.Windows.Forms.Label
  Friend WithEvents SayHello 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.txHi = New System.Windows.Forms.TextBox()
    Me.lbHi = New System.Windows.Forms.Label()
    Me.SayHello = New System.Windows.Forms.Button()
    Me.SuspendLayout()
    '
    'txHi
    '
    Me.txHi.Location = New System.Drawing.Point(48, 24)
    Me.txHi.Name = "txHi"
    Me.txHi.Size = New System.Drawing.Size(144, 20)
    Me.txHi.TabIndex = 0
    Me.txHi.Text = "Hello"
    '
    'lbHi
    '
    Me.lbHi.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.lbHi.ForeColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(0, Byte), CType(192, Byte))
    Me.lbHi.Location = New System.Drawing.Point(48, 64)
    Me.lbHi.Name = "lbHi"
    Me.lbHi.Size = New System.Drawing.Size(152, 24)
    Me.lbHi.TabIndex = 1
    '
    'SayHello
    '
    Me.SayHello.Location = New System.Drawing.Point(88, 136)
    Me.SayHello.Name = "SayHello"
    Me.SayHello.Size = New System.Drawing.Size(80, 24)
    Me.SayHello.TabIndex = 2
    Me.SayHello.Text = "Hello"
    '
    'HelloForm
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    Me.ClientSize = New System.Drawing.Size(292, 273)
    Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.SayHello, Me.lbHi, Me.txHi})
    Me.Name = "HelloForm"
    Me.Text = "Say hello"
    Me.ResumeLayout(False)

  End Sub

#End Region

  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SayHello.Click
    lbHi.Text = txHi.Text
    txHi.Text = ""
  End Sub
End Class
