Friday 27 April 2018

Copy one Combo Box items to another C#

Copy one Combo Box items to another C#

I just want to copy the items of classCombobox to comboBox1

so start a loop!
it will completely copy all the items from classCombobox to comboBox1

[Code]

 for (int i = 0; i < classCombobox.Items.Count; i++)
                {
                    comboBox1.Items.Add(classCombobox.Items[i].ToString());
                 
                }