日期:2014-05-20 浏览次数:20757 次
foreach(Control ctl in this.Controls) { CheckBox ck = ctl as CheckBox; if (ck != null) ck.Checked = true; } ------解决方案--------------------