c# winform中遍历控件

foreach (Control c in this.Controls)
            {
                if (c is ComboBox)
                {
                    c.Enabled = false;
                }
            }

原文地址:https://www.cnblogs.com/guiqiang/p/4632667.html