How to I have an if statement depending on the combo box selection? I get this message:
Conversion from string "Clear" to type 'Double' is not valid.

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If ComboBox1.SelectedIndex = "Clear" Then
            TextBox1.Clear()
        ElseIf ComboBox1.SelectedIndex = "Disable" Then
            TextBox1.Enabled = False
        ElseIf ComboBox1.SelectedIndex = "Both" Then
            TextBox1.Clear()
            TextBox1.Enabled = False
        End If
    End Sub
Thanks in advance for the help.