Combo box entry
The attached code takes whatever is chosen and prints it in a messagebox. It works great except for the -1 index. How can I accept a string that is input?
Public
Inherits System.Windows.Forms.Form
Dim strNucleotideAsString
PrivateSub ComboBox1_SelectedIndexChanged(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles ComboBox1.SelectedIndexChanged
Dim iAsInteger = ComboBox1.SelectedIndex
If i = -1Then
strNucleotide = ComboBox1.Text
ElseIf i = 0Then
strNucleotide = "TAGTAGATAC"
ElseIf i = 1Then
strNucleotide = "GCGCATAGGG"
EndIf
EndSub
PrivateSub btnCalculate_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles btnCalculate.Click
MessageBox.Show(strNucleotide, "Selected Nucleotide", MessageBoxButtons.AbortRetryIgnore)
EndSub
EndClass Any help would be appreciated!

