Re: Application Parameter Storing - Best Practices

From: Jeff Gaines (whitedragon_at_newsgroup.nospam)
Date: 10/12/04


Date: Tue, 12 Oct 2004 08:03:43 -0700

On 12/10/2004 HughJam wrote:

> Hi!
> I am new to Windows Forms, but battle-scarred in WIN32 API Windows.
> I am developing a forms application that needs to save the users
> settings (DB settings, profile selections, etc). I am looking for
> the best place/way to store these settings by user.
>
> The appconfig protocol prevents the application from updating the
> config, and this is probably not the best place to keep user data.
>
> Is the best practice to use the registry? Or, are folks using some
> other place to keep these user settings?
>
> Thank you for your help.

I will be on the lookout for any 'official' answer but I was under the
impression that MS recommended a couple of years ago that app specific
settings were best kept in app config files rather than the registry. I
read this in a Delphi book but I've never been able to confirm it.

I still use ini files but I guess I ought to move to XML files.

An XML config file in the app's directory would probably work and save
the registry from bloat.

-- 
Jeff Gaines Damerham Hampshire UK


Relevant Pages

  • Re: The Beginning Of The End For Micro$oft Reign Of Terror
    ... >>found in the registry. ... cryptic keynames and settings in the registry, someone has a lot to hide. ... > is just as easy to implement in Windows; ... > You're just defending the primitive text-based config files of Linux. ...
    (comp.security.firewalls)
  • (no subject)
    ... >>found in the registry. ... cryptic keynames and settings in the registry, someone has a lot to hide. ... > is just as easy to implement in Windows; ... > You're just defending the primitive text-based config files of Linux. ...
    (comp.security.firewalls)
  • Re: Configuration variables
    ... not everyone is chomping at the bit to let you hit their registry. ... Config files are great and easy to use, but currently they don't let you ... If you have a ton of people all of whom store custom settings, ...
    (microsoft.public.dotnet.general)
  • Re: Configuration variables
    ... Secondly accessing the Configurations varibles from Web.config file than accessing from Registry will be faster. ... Secondly the Admin can manually go and modify the Config file to have new set of values for the variables..... ... Config files are great and easy to use, but currently they don't let you ... If you have a ton of people all of whom store custom settings, ...
    (microsoft.public.dotnet.general)
  • Re: Hive-based registry setting
    ... >; END HIVE BOOT SECTION ... > HD may contain system registry; ... >>> later in the file can overwrite settings from earlier in the file. ...
    (microsoft.public.windowsce.platbuilder)