I have a panel with checkboxes and shortcuts, I want to change all checked statuses of checkboxes when I click the button.
foreach (object x in panel1.Controls)
{
if (x.GetType() == typeof(CheckBox))
{
x.Checked = false;
}
}
I am sure this is something simple, but I can not find how to solve the problem. I was able to write the same procedure in vb.net, but I do not want to use this
source
share