C# multiple config files (Winform)

Posted on 2009-02-13
Last Modified: 2013-12-14

I got a winform where I need multiple xml based config files. Does .Net have support for this or do I need to read/write those files with regular xmlreader/xmlwriter ?
Question by:ravedome
    LVL 1

    Accepted Solution

    .Net supports XML based config files.  

    Right click on your project name and select Application Configuration File from the project templates.  This will auto generate a file called app.config in your project.  Any additional config files can be created in the same way.  The auto generated file will look like the following code sample.

    Here is an MSDN page that describes the different types of configuration files and how they are used.

    If you move to web development in the future, the following link has ASP .NET specific information for config files:

    <?xml version="1.0" encoding="utf-8" ?>

    Open in new window


    Assisted Solution


    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.

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    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

    16 Experts available now in Live!

    Get 1:1 Help Now