App State

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
 
I

Ian Cooper

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
 

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

Top