Hello all,
I am using user settings to store the checked property of a control. The issue I have is: For example I have two radio buttons on my form. rb1 is checked by default, rb2 is unchecked by default. Now if I click rb2, the checked state of rb1 changes to uncheckedm but rb2 still remains unchecked, too. Only after I click rb2 again (NOT double click), the checked state of rb2 changes to checked.
This must have to do with the settings stuff, when the controls' properties are not bound to a setting they work as they should.
When I get the settings manually instead of "binding" them via the Designer, all is working fine:
rb1.Checked = Properties.Settings.Default.rb1;
rb2.Checked = Properties.Settings.Default.rb2;
...shows normal behavior of the radio buttons.
So, what do I need to do to use the Designer to apply the settings but having the same result as by doing this manually?
More weird is that for most of the checkboxes I have on my form, this issue does not appear, but still for SOME of them; I can't see any difference in code or properties for those which work and those which don't.
I appreciate any hints and tipps,
Best
Dennis