foreach (ComboBox a in Form1.ActiveForm.Controls)
{
MessageBox.Show("hello");
}
Hi, i want to add same items to all ComboBoxes, expect one. The part of my code is here. The problem is foreach loop never fire. I never see the MessageBox which is saying "hello". What is wrong in my code?
Thanks.