MessageBox.Show(ComboBox_Name.Items.Count.ToString());
CB1.Items.Add("Item #1"); CB1.Items.Add("Item #2"); CB1.Items.Add("Item #3"); CB1.Items.Add("Item #4"); CB1.Items.Add("Item #5"); MessageBox.Show(BC1.Items.Count.ToString()); //this would give me a message showing "5" //If I do the same with CB1 (with values populated from XML file). I get "0"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)