How can I combine results from checkbox
?
With 5 checkbox
, for example, how do I make the result be combined for when the user selects 5 and 3 a messenger box appears.
Ps: If the question is vague, let me know
How can I combine results from checkbox
?
With 5 checkbox
, for example, how do I make the result be combined for when the user selects 5 and 3 a messenger box appears.
Ps: If the question is vague, let me know
Just do this:
if(meuCheckBox3.Checked && meuCheckBox5.Checked)
{
//Combinação 1
}
if (meuCheckBox1.Checked && meuCheckBox4.Checked)
{
//Combinação 2
}
if (meuCheckBox1.Checked && meuCheckBox2.Checked && meuCheckBox3.Checked)
{
//Combinação 3
}
You can do this within a method and call this method in the click events of checkbox
.