I have made a Win Form and have a few controls like checkboxes, radio buttons etc. What I hope to happen is that the user will choose some settings e.g. tick the box to start the program on startup, then they can quit, when they open it again, how do I ensure that the choices that they made are saved? Thanks.
Share
There are a few ways, but I’d recommend using the .NET user settings method to save their settings in the properties section of the application and reload and set them when they start the application again.
Here’s an example:
Save Setting
Load Setting
I’d recommend giving them more meaningful names, however.
You can read more, with examples here: MSDN Using Application Settings and User Settings
This is also a nice tutorial on how to implement user settings from start to finish: C# – Saving User Settings – Easy way!