NEWBIE - Where to store user-defined options?

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Greetings,

On a windows forms application, if I have a form with user options, where do
I store those so that when the user opens the application again, those
options are used (i.e. the form's background color).

Thanks,

-Dave
 
Herfried,

This looks like some great reading. Thanks for the link! Do you recommend
the xml method?

-Dave
 
Jim Burns said:
Is there no more getsetting and savesetting functions.

These functions are not supported any more. Their functionality can be
replaced by the 'Microsoft.Win32.Registry' class.
 
I use the registry., but I have also used INI files. The registry
seems to be more efficient, and easier to use.
 
On a windows forms application, if I have a form with user options, where
do
It depends on the environment...

For single PC's such as you'd find at home, either would work well.

In an office environment where users have roaming profiles you'd be better
off with the registry as it will travel with the profile regardless of which
machine they sat at.

In an office environment where the profiles do not follow the users and the
users move from machine to machine, an INI file is easier to backup and
restore by the user - especially if the admins have removed the ability for
the user to alter the registry.
 
Dave,

In my opinion it is:

Workstation depending parts as screensize, windowstate, colors of the
screen, paths in that PC, the registry

PC independent parts XML file.

Just my thought,

Cor
 

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