How can I iterate through all checkboxes on a form?

foreach(Control c in this.Controls)
{
   if(c is CheckBox)
   {
   // Do stuff here ;]
   }
}

Leave a Comment