473,320 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 4827
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nevyn Twyll | last post by:
I understand that I am not supposed to alter the .config file for a program (accessible through the AppSettings). Is there a System class you could recommend that I could use (or even a class...
2
by: Shane | last post by:
Does anyone know how to add user scoped settings to My.Settings at runtime? I know how to use the 'My Settings' designer to add user settings at design time. I also, know how to create a class...
1
by: GAZ | last post by:
Hello all, We have a bit of a problem with application settings and user control. In short, we have developed a user control that should, as it happenes, get a value stored in application...
4
by: RedHair | last post by:
I developed a Win form with VS.NET 2005 + .NET 2.0 in C# There are some application settings are "User" scope and stored in xxx.settings, I can access them via Settings class and changethem with...
1
by: Robert Dufour | last post by:
Changing a setting in the UserSettings from within my app using code (Vs2005 vb.net) does not seem to persist changes to the myapp.exe.config file what is the location and name of the file where...
5
by: Steve Barnett | last post by:
I added some user settings to my app which caused the Settings.settings to be generated etc... and all was well and lovely and the Sun was shining. Then I changed the version number of my...
0
by: =?Utf-8?B?R2lubw==?= | last post by:
If I provide a user with the ability to change some settings in a VS2005 solution using my.settings and then republish the application to fix a bug or add a new feature the settings get lost due...
8
by: Clarks Computing | last post by:
Hi all, Question regarding the settings feature in Visual C# 2008. Let's say I create a user setting called TextEditor in the settings designer. I realize that I can type a string value such...
1
by: =?Utf-8?B?VGVycnk=?= | last post by:
I have an application where the user can configure the an area of the UI to contain a variable number of 'plans', lets say 0 to 6 of them. Each 'plan' has a description and a type amongst other...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.