User Settings Help - Vb.net
Posted on 2011-09-16
I have a windows form application being developed in VS 2008 on Windows 7 64 bit machine.
My user settings are not being persisted between application loads.
So for example. I have this in the form close event:
The setting is a Boolean value. When the application closes the value it TRUE.
I can see the user.config file has the value stored in it.
I then have this in the me.Startup Event
When this code runs the value is TRUE - as one would think.
BUT then the next thing that fires is the MyBase.Load event.
In this event the first thing is:
Here the value equals FALSE.
This tells me somehow between the startup application event and the form load event the value is changing... this is so very frustrating because I cannot for the life of me figure this out and I have invested hours trying to understand when/how this is getting changed.. but cannot get it.
The settings all have GenerateDefaultValueInCode set to True - which I understand to mean if it does exist use the value you specify in the project settings.