Possible Duplicate:
Using ApplicationSettings to store Checked property for WinForms RadioButtons
I have three radiobuttons in a groupbox. When they are not bound to application settings, they behave normally.
After binding each of their checked properties to application settings, the following happens: I have to click an unchecked radiobutton two times to have it checked. After the first click, all three are unchecked.
I also tried binding only two of them, but the behaviour is the same.
Can anyone please help with this?
Thanks.
I also asked on MSDN Visual Basic General Forum.
You can add the following event handler to the Click event of each of the three RadioButtons (of which the Checked properties are bound to Application Settings) in your GroupBox:
It works, even though it takes a half-second for an unckecked RadioButton to be checked after you click it.
The reason for the problem was explained two years ago (in 2008) in section 5 of the Surviving WinForms Databinding post on the Turbulent Intelect blog (Thank you, ohadsc, for the link):