I try to find how to assign a bool to a checkbox. I want that my checkbox.checked value refresh automatically when my bool data change. I know that for ComboBox there are the DataSource attribute that make it with a list but I am not able to find the equivalent with checkbox.
I try with the checkBox.DataBindings but it does not seem to work.On the other hand I don't really know what mean the third attribute.
checkBox.DataBindings.Add("Checked", DisableBugWatcher, "check");
I need that because I have two independent windows that refresh the same checkbox value!
EDIT :
I try to use the Event to update my main GUI but it say : Cross-thread operation not valid: Control 'checkBox' accessed from a thread other than the thread it was created on.
The problem is link to the fact that the bool value is refresh from an other thread than the one that it impact.
winforms
. FYI, there are many UI frameworks within .net, winforms is only one of them (the less performant, less scalable, less efficient one, by the way) – Fester