am Really new in vb and this has been giving heck of worries
i have a combo box with about 13 collections. i want when a user selects an option, it should open in a new form. the problem now is when a user clicks on an option, all the 13 forms will open. please help
here is my code
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
ComboBox1.SelectedValue = "1"
Form2.Show()
Me.Hide()
ComboBox1.SelectedItem = "2"
Form3.Show()
Me.Hide()
ComboBox1.SelectedItem = "3"
Form4.Show()
ComboBox1.SelectedValue = "4"
Form3.Show()
Me.Hide()
ComboBox1.SelectedItem = "5"
Form5.Show()
Me.Hide()
ComboBox1.SelectedItem = "6"
Form6.Show()
ComboBox1.SelectedValue = "7"
Form7.Show()
Me.Hide()
ComboBox1.SelectedItem = "8"
Form8.Show()
Me.Hide()
ComboBox1.SelectedItem = "9"
Form9.Show()
ComboBox1.SelectedValue = "10"
Form9.Show()
Me.Hide()
ComboBox1.SelectedItem = "11"
Form10.Show()
Me.Hide()
ComboBox1.SelectedItem = "12"
Form11.Show()
Me.Hide()
ComboBox1.SelectedItem = "13"
Form12.Show()
Me.Hide()
End Sub
Someone should help Asap