App State

  • Thread starter Thread starter archway
  • Start date Start date
A

archway

Hi,

I am considering the best place to store application state information. In
other words, the settings that have been made to the application during the
last user's interraction with it. Such data would include the following:

* Window position, size etc at time of last shutdown
* Tools --> Options type settings for the user

Now, I would like some advice on where to store this information. I guess it
would either be in the registry or within a file (possibly XML), which is
perhaps stored within the users application data folder.

I am just curious as to how other people have implemented this so I can get
a feel for the pros and cons.

Thanks
 
Now, I would like some advice on where to store this information. I guess it
would either be in the registry or within a file (possibly XML), which is
perhaps stored within the users application data folder.

One pattern is to use Isolated Storage - roaming if you want your users settings to travel with them. Just make sure it is user config information i.e. you don't want to centrally administer it, and that it does not need to be secure.
Ian Cooper
www.dnug.org.uk
 
Back
Top