foreach (Control c in this.Controls) { if (c is ComboBox) { c.Enabled = false; } }
c# winform中遍历控件
原文:http://www.cnblogs.com/guiqiang/p/4632667.html