c# - working with two combo boxes -


im using c# .net windows form application. have 2 comboboxes , b .i have pouplated values. if select 1 value a, should able populate b items of except selected item .

maybe want :

    (int = 0; < combobox1.items.count;i++)     {         if ((combobox1.selectedindex)!=i)         {             combobox2.items.add(combobox2.items[i]);         }     } 

you have clear combobox2 before adding new items


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -