1
Reply

Displaying item in Combobox from checklistbox

trond 0

trond 0

Dec 13 2004 9:38 AM
2.5k
I have a combobox that i populate with items from a checkedListBox. When the user is selecting an item in the checkedlistbox for the first time i want the combobox to show that item. As it is now it is just adding the selected item to the combobox: for (int y=0;y < checkedListBox1.CheckedItems.Count; y++) { cmbParameters.Items.Add(checkedListBox1.CheckedItems[y].ToString()); } Is there a way i can add some code so that the cmbParameters box is then set to that item as if the user selected it from the dropdown?

Answers (1)