I have a check box in WinForms, when checked I would like it to set a string e.g.:
string CheckBox = true
Edit: Or would this be a better example:
bool checkbox = true;
So when a method is run it will lookup the string and dependent on it’s value with perform a a submethod…
So the question is really how do you set a string on a CheckBox when it is clicked, I have checked the Actions list and the closest is “CheckChanged”, but obviously it won’t work.
Why would CheckChanged not work?
Or just use
CheckBox1.Checkedin your subroutine.