By default in windows application setting are saved in this directory:
%USERPROFILE%\Local Settings\Application Data\<Company Name>\<appdomainname>_<eid>_<hash>\<version>\user.config
Is it possible to change path for saving user.config file? For example save it in local folder?
Settings. settings is located in the My Project folder for Visual Basic projects and in the Properties folder for Visual C# projects. The Project Designer then searches for other settings files in the project's root folder. Therefore, you should put your custom settings file there.
User settings are saved in a file within a subfolder of the user's local hidden application data folder.
From the Home screen, tap the Apps icon (in the QuickTap Bar) > the Apps tab (if necessary) > Settings .
You can, if you make your own ApplicationSettingsBase derived class to manage the application settings.
For details, see Application Settings Architecture.
That being said, I strongly recommend not doing this. Using a local folder (local to your app) will require your application to run under elevated permissions on Vista and Windows 7, which is an unnecessary annoyance. User settings files should be configurable via your application, and not something the user ever needs to see or hand-edit...
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