Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

Simple XML settings file reading and writing - newbie

Hello,

I dont have much experience with vb.net and i need some help.

I have a form that has a few text boxes for entering in credentials to connect to a mysql database.

I want to have the settings read from an xml file when its loaded, and written to the xml file when its closed.

I also want to put as much of the reading and writing code in a module, and call it from the form when needed.

Can someone please give me a basic guide and/or examples to achieve this?

thanks,

bryan
0
bryanford
Asked:
bryanford
2 Solutions
 
cubixSoftwareCommented:
Hi

Look at the comments here as there is code you can use to do exactly what you need.

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21785168.html

HTH :)
0
 
Éric MoreauSenior .Net ConsultantCommented:
Hi bryanford,

see an article I wrote in May 2003 at http://emoreau.s2i.com/

Cheers!
0
 
bryanfordAuthor Commented:
i was also looking around and found this:

http://www.codeproject.com/vb/net/ConfigOpt.asp

which i tried and works really good and is very simple.

Thanks for your posts though, i'll split the points between you

bryan
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now