468,283 Members | 1,893 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,283 developers. It's quick & easy.

Where are user settings persisted?

I am using the My.Settings object to save user settings. During testing, I
want to 'zero' out what has been saved to start with the defaults again.
Where doies the framwork actually persist these user settings?

TIA,
--
Terry
Oct 2 '08 #1
1 4660
Hi Terry,

"Terry" <Te****@nospam.nospamwrote in message
news:75**********************************@microsof t.com...
>I am using the My.Settings object to save user settings. During testing, I
want to 'zero' out what has been saved to start with the defaults again.
Where doies the framwork actually persist these user settings?
See:
http://msdn.microsoft.com/en-us/libr...t1(VS.85).aspx

<quote>
Settings File Locations
The location of the app.exe.config and user.config files will differ based
on how the application is installed. For a Windows Forms-based application
copied onto the local computer, app.exe.config will reside in the same
directory as the base directory of the application's main executable file,
and user.config will reside in the location specified by the
System.Windows.Forms.Application.LocalUserAppDataP ath property. For an
application installed by means of ClickOnce, both of these files will reside
in the ClickOnce Data Directory underneath %InstallRoot%\Documents and
Settings\username\Local Settings.

The storage location of these files is slightly different if a user has
enabled roaming profiles, which enables a user to define different Windows
and application settings when he or she is using other computers within a
domain. In that case, both ClickOnce applications and non-ClickOnce
applications will have their app.exe.config and user.config files stored
under %InstallRoot%\Documents and Settings\username\Application Data.

For more information about how the Application Settings feature works with
the new deployment technology, see ClickOnce and Application Settings. For
more information about the ClickOnce Data Directory, see Accessing Local and
Remote Data in ClickOnce Applications.

</quote>

Oct 3 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by RedHair | last post: by
1 post views Thread by Robert Dufour | last post: by
5 posts views Thread by Steve Barnett | last post: by
8 posts views Thread by Clarks Computing | last post: by
1 post views Thread by =?Utf-8?B?VGVycnk=?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.