How to check whether a checkbox is checked

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
This code:
      if (checkBoxCSharpShown.IsChecked)<br/>      {<br/>        checkBoxCSharpShown.IsChecked = false;<br/>      }
elicits:
"Cannot implicitly convert type bool? to bool. An explicit conversion exists (are you missing a cast?)"
How can I check whether the checkBox is checked? <hr class="sig Delphi ancient/C# newbie

View the full article
 
Back
Top