User.config file creation

  • Thread starter Thread starter Robert Scheer
  • Start date Start date
R

Robert Scheer

Hi.

I am playing with application and user settings for windows forms
applications. I found this very helpful topic <http://
groups.google.com/group/microsoft.public.dotnet.framework.windowsforms/
browse_thread/thread/e9a8ba3295ca909b/e903f50e3bd04d68?
lnk=st&q=user.config+group%3A*dotnet*#e903f50e3bd04d68 > that answered
several questions about the subject.

My problem is that I am searching for the User.config file under my
'Documents and Settings' folder and the file is not there. A windows
search on my drive also could not find the file. My question is, when
is the User.config file created? When I compile my application on
Visual Studio or at some other moment?

Regards,
Robert Scheer
 
Hi,

based on my (quick) observation, User.Config is created whenever your
settings are different then default ones...

Consider following example:

I have application where I am specifying following settings:
A=1
B=1
C=1

User can change these settings... If he keeps them (so he is using
default), User.Config is not created.

When he will change
A=1
B=2
C=1
(B only is changed), User.Config is generated and contains all
settings.

Martin
 

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

Back
Top