Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I added some user settings, change them in runtime and saved them.
Change is accepted so when I start program again, variables are changed (for example I changed string, and when I run app again string is changed).
Problem is when I look at the settings there are always values I added in begining, althoug when I run program I have new variables.
Can variables be saves so that I can see new ones in user settings?
Posted
Updated 21-Jun-13 2:52am
v2

1 solution

If you are using the Application scope for your settings, the settings cannot be changed at run time.

Second, if you are running from the Debug directory by compiling in Visual Studio, it will overwrite your settings file with the one from your project each time you compile and run. It does this because it has to re-generate the Settings class you use to access the file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900