Please Help, Linking 2 Combo Boxes Together

JD2369

Member
Joined
Jan 12, 2011
Messages
19
Programming Experience
Beginner
Hi i've been searching everywhere to try to get this setup. I am running Visual Basic 2008

I have 1 Combo Box that Has 3 Entries, Kyocera>Konica>Toshiba

I have a 2nd Combo Box that has entries for each of those manufactors...Kyocera has 3035,4035,5035....the konica has c250,c352,c452......the Toshiba has c3520, 4520

I want it so when i click on Kyocera the 2nd combo box only reads 3035,4035,5035 and when i click konica it only reads c250,c352,c452 etc etc

Thank you for your help
 
One option would be to create a Dictionary where the keys are the items from the first ComboBox and the values are the lists of items fro the second ComboBox. Handle the SelectedIndexChanged event of the first ComboBox and get the SelectedItem. Use that to get the corresponding list from the Dictionary and then load that list into the second ComboBox.
 
Back
Top