I have two checkboxes in my form; chkBuriedand chkAboveGround. I want to configure it, so if one of them is checked, the other is not installed. How can i do this?
I tried the property CheckChanged:
private void chkBuried_CheckedChanged(object sender, EventArgs e)
{
chkAboveGround.Checked = false;
}
private void chkAboveGround_CheckedChanged(object sender, EventArgs e)
{
chkBuried.Checked = false;
}
And it works, just not as good as I hoped. That is, when I check chkBuried, then check chkAboveGroundboth boxes will not be checked before I can check another one again.
source
share