Option Explicit On 

Public Class frmEnable
  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 btnButton1 As System.Windows.Forms.Button
  Friend WithEvents btnButton2 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.btnButton1 = New System.Windows.Forms.Button()
    Me.btnButton2 = New System.Windows.Forms.Button()
    Me.SuspendLayout()
    '
    'btnButton1
    '
    Me.btnButton1.Location = New System.Drawing.Point(56, 16)
    Me.btnButton1.Name = "btnButton1"
    Me.btnButton1.TabIndex = 0
    Me.btnButton1.Text = "Button &1"
    '
    'btnButton2
    '
    Me.btnButton2.Enabled = False
    Me.btnButton2.Location = New System.Drawing.Point(56, 56)
    Me.btnButton2.Name = "btnButton2"
    Me.btnButton2.TabIndex = 0
    Me.btnButton2.Text = "Button &2"
    '
    'frmEnable
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    Me.ClientSize = New System.Drawing.Size(188, 97)
    Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnButton2, Me.btnButton1})
    Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
    Me.Name = "frmEnable"
    Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
    Me.Text = "Enable Problem"
    Me.ResumeLayout(False)

  End Sub

#End Region

  Private Sub btnButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnButton1.Click
    btnButton1.Enabled = False
    btnButton2.Enabled = True
  End Sub

  Private Sub btnButton2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnButton2.Click
    btnButton1.Enabled = True
    btnButton2.Enabled = False
  End Sub
End Class
