How to edit Visual C# xml config file

Hi Experts

I have a registry entry with the location of my database inside, and inside of the xml config file it defines the path of the database, but it is hard coded... I can display the information of the registry in a label, but how do i get the path that's in the registry inside of the xml config file
<?xml version="1.0" encoding="utf-8" ?>
        <add name="Road_Call_Fuel_Transactions.Properties.Settings.TransportScheduling_ConnectionString"
            connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\ben\TransportScheduling_be.mdb"
            providerName="System.Data.OleDb" />

Open in new window

Who is Participating?
I can't completely follow. What exactly are you trying to do ?

How to change App.config file run time using C#
BenvorAuthor Commented:
never mind, that piece of code works 100% thanx
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.