Application.Settings is, of course, the way to go - unlike registry settings, it will work regardless of the operating system, user level, or when starting the application from the Terminal Services client.
In the past, I created the MigrateUserSettings property and used it to help me manage the migration of user settings.
I set this property to true in the default application. On startup, if I find that it is ever set to true , I try to migrate the parameters and then set it to false (then it remains false strong> until the application is updated).
Example:
if (Settings.Default.MigrateUserSettings) { Settings.Default.Upgrade(); Settings.Default.MigrateUserSettings = false; Settings.Default.Save(); }
source share