' Remove the RadioButton control if it exists.
Private Sub RemoveButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles RemoveButton.Click
If Panel1.Controls.Contains(RadioAddRangeButton) Then
Panel1.Controls.Remove(RadioAddRangeButton)
End If
End Sub