I am using 2 checkboxes on WinForms.
I am trying to say to the program, if the box is checked.. do this..
If the box is unchecked..do that..
I know how to make it do what i want when the button is checked, but i dont know how to make it do something when the button is unchecked.
Here some of my code:
if (this.ChckBxAND1.Checked && this.ChckBxAND2.Checked)
{
LblResultAND.Text = "ON!";
}
So, when it is checked, it outputs the the Lbl the text "ON!"
if (//the checkbox is not checked)
{
LblResultAND.Text = "OFF!"; //do the following
}
Much Appreciated!
Regards