Problems with Properties.Settings.Default and and user.config

L

logicnet.dk

Is it possible to decide where user.config is stored by
Properties.Settings.Default.Save?
The default location seems to be "C:\Documents and
Settings\[User]\Local settings\Application Data\[AppName]\[Executable
name_Url_some random key]\[Version number]" and there are several
reasons why I want to change that:

1. I have noticed that the "some random key" part of the path name
changed during the development of my application and then the settings
were lost.
2. I would prefer that the application version number was not part of
the path, because then every time a user upgrades to a new version then
all of his old settings are lost.
3. I would like to be able to rename the application executable and
still reference the same user.config
4. In a screen saver under Windows Vista (RC1) it seems that the
user.config that is used when the screen saver is configured and
previewed is not the same as the use used when it starts after the
computer has been idle for some time. Actually this happened with the
screen saver that was included as an example with Visual C# Express 2005
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top