Hope that helpsCode:private void linkUser_Click(object sender, EventArgs e) { if(circumstancePanel.Controls!=null){ for (int i = this.Controls.Count - 1; i >= 0; i--){ Control c = this.Controls[i]; // now we check if the control is a checkbox if (c.GetType() == typeof(CheckBox) { ((CheckBox)c).Checked = true; } } }




Jonny Poet
Reply With Quote