❔ When my checkbox is selected, the CheckState still says false.(Windows Form)
Given that my check boxes read false even when their clicked,my if statement returns the else value. How to solve?
6 Replies
$screenshot
If you want to share code, please copy and paste the code into a markdown code block in your discord post, or paste the code into https://paste.mod.gg/ and share a link to it in your discord post.
If want to share a screenshot, please do not take a photo of your computer screen with your phone or camera. Instead see https://www.take-a-screenshot.org/ for how to take a screen capture on your device. You may want to crop the image before pasting it into your discord message.
Just because it hits the if-check doesn't mean it matches the condition
This is the code here.
The code suppose to be correct, but when I debug, even when the check box is ticked, it still says false
looks like the problem was because my statements are inside of the property
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.