try using properties to save the settings, for example: Properties.Settings.Default
To add properties, right-click → Properties-> Settings (tab)
Then add everything you need, then to access the code from .Default
To save update settings at runtime, follow these steps: Properties.Settings.Default.Save ()
Hope this helps
source share