Simple XML settings file reading and writing - newbie

Posted on 2006-03-23
Last Modified: 2010-04-23

I dont have much experience with 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?


Question by:bryanford
    LVL 6

    Accepted Solution


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

    HTH :)
    LVL 69

    Assisted Solution

    by:Éric Moreau
    Hi bryanford,

    see an article I wrote in May 2003 at

    LVL 1

    Author Comment

    i was also looking around and found this:

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

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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    I'm currently working for a company where I have to upgrade over 50 VB6 programs to VB.NET 2008.  So far I'm about half way through, and I've learned quite a few tricks that drastically improve the performance of VB.NET apps. Because there are a…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now