Storing setting

  • Thread starter Thread starter Gav
  • Start date Start date
G

Gav

Hi all,

I have been looking into writing values to the config file. I have just
read that it is not a very good idea to do so. Could anyone suggest a good
way to store app settings?

thanks
Gav
 
Gav,

Computer settings (form wide etc) registry
Portable user settings: config.file
(However, setting usernames and/or passwords in your config file is the
worst you can do)

An easy way to make a config file is a dataset.

I hope this helps,

Cor
 
There is one config file for your app. Each user of your app on a single
computer will need their own settings. Therefore, it is unwise to store the
settings for any one user in the config file for the entire app.

Create your own XML file in the local user's directory. I believe that
there are libraries already written and available on the web for doing this.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top