foreach (Control c in this.groupBox1.Controls) { if (c.GetType() == typeof(CheckBox)) { ((CheckBox)c).Checked = true; } }
foreach (CheckBox c in groupBox1.Controls) { if (c.Checked == false) c.Checked = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)