Skip to main content

WPF Checkbox isChecked???

  • October 15, 2013
  • 2 replies
  • 0 views

Hi!

I will ask the state of a Checkbox...

This will not be working:

if (checkBox1::IsChecked = true)

continue

end-if.

What is wrong?

 

Best Regards

Bernd


#WPFCheckboxIsChecked

2 replies

Chris Glazier
Forum|alt.badge.img+2

Hi!

I will ask the state of a Checkbox...

This will not be working:

if (checkBox1::IsChecked = true)

continue

end-if.

What is wrong?

 

Best Regards

Bernd


#WPFCheckboxIsChecked

You need to include the Value property like:

           if checkbox1::IsChecked::Value = true
              set textBox1::Text to "checked"
          else
             set textBox1::Text to "not checked"
          end-if


Hi!

I will ask the state of a Checkbox...

This will not be working:

if (checkBox1::IsChecked = true)

continue

end-if.

What is wrong?

 

Best Regards

Bernd


#WPFCheckboxIsChecked

Thats it!

Many Thanks !!!