Hi guys,
I have a combobox in one form and a tabcontrol in another form , how can I show for ex. the tabpage1 in the tabcontrol when I click on iten 1 with the combo. and and the tabpage2 in the tabcontrol when I click on item 2 with the combo , and so on.
this is the code I use for my combobox in the first form:
thanks.
I have a combobox in one form and a tabcontrol in another form , how can I show for ex. the tabpage1 in the tabcontrol when I click on iten 1 with the combo. and and the tabpage2 in the tabcontrol when I click on item 2 with the combo , and so on.
this is the code I use for my combobox in the first form:
Code:
If ComboBox2.SelectedItem IsNot Nothing Then
Dim ans1 As Double
ans1 = ComboBox2.SelectedIndex
Select Case ans1
Case -1
MessageBox.Show("צורת הגג")
Case 0
Label19.Text = ComboBox2.SelectedItem
Case 1
Label19.Text = ComboBox2.SelectedItem
Case 2
Label19.Text = ComboBox2.SelectedItem
Case 3
Label19.Text = ComboBox2.SelectedItem
End Select
End If
End Sub
thanks.