0
How can I combine results of checkbox
?
With 5 checkbox
, for example, how I make the result be combined for when the user selects the 5 and the 3 appears a messenger box.
Ps: If the question is vacant warn
0
How can I combine results of checkbox
?
With 5 checkbox
, for example, how I make the result be combined for when the user selects the 5 and the 3 appears a messenger box.
Ps: If the question is vacant warn
5
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 checkbox
.
Browser other questions tagged c# wpf
You are not signed in. Login or sign up in order to post.