I have a Windows Forms application and I'm using the Settings.settings class to store user's configuration (email preferences, theme, etc) I didn't realize that after the user closes the app, the settings are gone!!
This app is about to be released to production, so I have to provide a solution ASAP.
User settings are saved in a file within a subfolder of the user's local hidden application data folder.
Application settings enables developers to save state in their application using very little custom code, and is a replacement for dynamic properties in previous versions of the . NET Framework.
To check your settings: Go to Solution Explorer > expand the Properties node of your project > double-click the . settings file. There you can create your own settings with User scope and edit it at runtime, if that is your intention.
You do have to save them after you set them. Have you tried:
Properties.Settings.Default.Save();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With