private void button1_Click(object sender, EventArgs e)
{
for (int card = 0; card < 3; card++)
{
if (shouldBeChecked(card)) //<<< I only need to check specific check boxes; check the boxes that "shouldBeChecked"
{
CheckBox(card).checked = true; //<<< card is the number of the checkbox
}
else
{
CheckBox(card).checked = false; //<<< card is the number of the checkbox
}
}
}
How would I best accomplish this?

New Topic/Question
Reply



MultiQuote





|