I have created a Combo box with the 3 items.
And one more Combo Box with the 9 items.
When one item of 1st combo box selected,the 2nd combo box should show only 3 items out of 9 items.
how to do this?
I tried but not getting it.
Iamateur
0
Junior Poster in Training
Recommended Answers
Jump to PostWhat are the items in each and how are the items in combo2 supposed to be restricted after combo1 is selected?
Jump to Posthere is in example :
in ComboBox1 Properties i put this item :
"Superhero"
"Badguy"in ComboBox1 SelectedIndexChanged event, i put this code :
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged If Me.ComboBox1.Text = "Superhero" Then With Me.ComboBox2 .Items.Clear() .Items.Add("Batman") .Items.Add("Optimus") …
All 5 Replies
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
artemix22
4
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
artemix22
4
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.