c# - How to change application settings (Settings) while app is open? -
I wrote a class that I should easily read and write values in app settings:
Public Fixed Category SettingsManager {Public Static String Complement ValidationsString {get {return (string) Properties.Settings.Default ["ComplexValidations"]; } Set {properties.Settings.Default ["ComplexValidations"] = Value; Properties.Settings.Default.Save (); }}
The problem is that the value is not actually saved, I mean that when I exit the application and run it again it does not change.
You should check
properties.Settings.Default.Properties [" ComplexValidations "]. IsReadOnly
This is probably true, that Rowland means "app scope". Save will be silently project | Properties | Take a look at the settings, the third column.
Comments
Post a Comment