Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving settings

Status
Not open for further replies.

MDA

Technical User
Jan 16, 2001
243
US
Hi all,

I am trying to figure out the best way to save settings in my small app. I have the following settings I need to save:
1. Connection info (Ex: The last server name used, was it trusted authentication or user name, if so what was the user name last used.

2. In my listView which is connected to a SQL table, which items were checked the last time the app was opened.

3. Various other info...


In the past I have used the registry to save connection info but I think a file would be better for all this info??

What is "best practices" for this? If a file is best, how would I add all this info?? What about using an XML file?

Thanks for any ideas!

Best regards,
M
 
I would create a dataset and those are easy to save as xml or retrieve the information.

Code:
Dim ds As DataSet
ds.ReadXml("filename")
ds.WriteXml("filename")



Christiaan Baes
Belgium

What a wonderfull world - Louis armstrong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top