Hello,
Using Visual Studio 2010 in a VB.Net Winforms application, with 'Save My.Settings on Shutdown' = True:
I've created a PropertyBinding in ApplicationSettings to a SplitContainer's Panel1Collapsed property. The designer correctly creates a Boolean setting. However, the value is not correctly saved when I close the application.
If the default value = True, then if I collapse the panel (in code-behind), then close the application, the setting in user.config is not changed. If the default value is False, then if I expand the panel (again, in code), then close the application, the setting in user.config is not changed.
However, if the default value = True, then if I expand the panel in code and adjust the splitter by any amount then the value is set to False in user.config. In no scenario, however, will the value save if the default value = False.
Can anyone tell me how to do this? I realize I can do it manually, but I'd really like to be able to use the built-in property bindings.
Thanks for any help.