c# check if checkbox checked code example
Example 1: if checkbox checked in c#
if(checkbox1.checked ^ checkbox2.checked)
{
//do stuff
}
Example 2: if checkbox checked in c#
if (checkbox1.Checked && !checkbox2.Checked)
{
}
else if (!checkbox1.Checked && checkbox2.Checked)
{
}