How to have a result by mixing checkboxes?

-1

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

    
asked by anonymous 12.05.2017 / 12:54

1 answer

6

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 .

    
12.05.2017 / 13:06