Storing User Settings

Hammy

Freshman
Joined
Jan 15, 2003
Messages
27
Location
Ontario, Canada
I am fairly new to VB.NET and was wondering if anyone can't point me along the right path.

I am looking to decide on the best way to store user settings they choose in program dialog boxes. For exmaple, there may be an OPTIONS dialog box, and they want to specify the default font for the program, a specific date format, etc.

What is the best way to store these settings so they are there for subsequent uses? I am thinking probably a .ini file or registry. Any suggestions? Or better still, tutorials on tis subject?

Thanks,
Scott
 
The .NET Framework provides classes for serializing data to and
from XML. If store all your application's settings in one class, then
you should have no problem creating XML files to store and
retrieve the settings. XML serialization is the .NET equivalent of
INI files.

There are some good explanations and code samples in the
help collection. For starters, check out the XmlSerializer class and
the Serializable attribute.
 
Back
Top