Hmm...I'm curious how a VB.Net question was solved with an ASP answer.
If this is ASP, it should have been marked that way. Otherwise, an ASP control will not work in a WinForms app.
The idea is the same as the cascading drop down, but you'll have to implement it yourself if it's a WinForms app.
Hook the
ComboBox.SelectedIndexChanged
event, and update the second
ComboBox
based on that value.
[To your other question about this]
Sorry, but not to be rude, but if you don't understand "Hook the
ComboBox.SelectedIndexChanged
event, and update the second
ComboBox
based on that value." then, you need to buy some books.
Within your code, the hook and code looks something like:
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles ComboBox1.SelectedIndexChanged
If ComboBox1.SelectedText = "Pen" Then
ComboBox2.Items.Clear
ComboBox2.Items.Add("Mont Blanc")
ComboBox2.Items.Add("Parker")
...
ComboBox2.Text = "<Select a Pen Brand>"
End If
End Sub
[Modified]
So, seriously, who is it that has a problem with me personally and keeps voting my answers as a 1?
Was my information factually incorrect? No!
Was my information unuseful because it was for a different language (like answering a VB.Net question with an ASP.Net answer)? No!
If you have a problem with me, post something in the forum...don't confuse people by saying the answer is wrong, which it is not.