Save settings ...

  • Thread starter Thread starter Gabriel
  • Start date Start date
G

Gabriel

Hello,

Is there an easy way to save the application ? for example :
- Application position on the screen
- Imagine if I have an "option" form

How save and restore these informations ?

Thanks,
 
In VS2005, create a settings object (e.g. MySettings.settings) in the
project explorer; define the settings via the tool (as "user" settings);
read via MySettings.Default.whatever; after updating them call
MySettings.Default.Save; job done. For more complex needs, consider
serializing a custom object (usually as xml) e.g. to the user's app-data
area.

Marc
 
Back
Top