Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8997811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:56:22+00:00 2026-06-15T23:56:22+00:00

I am trying to create a simple tool for a service person to update

  • 0

I am trying to create a simple tool for a service person to update a few entries in the App.Config of a different program. The App.Config file contains custom parameters used upon initialization of our program.

Since the App.Config contains many sensitive items a tool is needed to ensure only certain parameters are changed. Thus, the reason not to allow them to edit the App.Config directly.

My questions:

  1. How can I access the name-value pairs from the config sections of an App.config from a separate program?
  2. Which is better suited for the UI: Winforms or WPF? Are their controls that make it easy to add more entries in the future?
  3. The tool should allow the user to set either a String, int, double or Boolean.

Here is the structure of the App.Config:

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

  <configSections>
    <sectionGroup name="Settings">
      <section name="Section1" type="System.Configuration.NameValueSectionHandler"/>
      <section name="Section2" type="System.Configuration.NameValueSectionHandler"/>
      <section name="Section3" type="System.Configuration.NameValueSectionHandler"/>
      <section name="Section4" type="System.Configuration.NameValueSectionHandler"/>
    </sectionGroup>
  </configSections>

  <Settings>
    <Section1>
      <add key="NAME_STRING" value="Some String"/>
    </Section1>

    <Section2>
      <add key="NAME_INTEGER" value="10"/>
    </Section2>

    <Section3>
      <add key="NAME_DOUBLE" value="10.5"/>
    </Section3>

    <Section4>
      <add key="NAME_BOOLEAN" value="true"/>
    </Section4>
  </Settings>

  ... Omitted ...

</configuration>

In the program which uses the App.Config itself, I can easily change the values like so:

NameValueCollection nvc = (NameValueCollection)ConfigurationManager.GetSection("Settings/Section1");

Is there a similar way to do this from a separate program after loading the App.Config?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:56:23+00:00Added an answer on June 15, 2026 at 11:56 pm

    An answer to Question 1: An app.config file is an XML file. It might be easiest to load it as an XML document and modify that programmatically, followed by a save, than to use System.Configuration classes.

    ETA: I believe it can be done with ConfigurationManager. Look at the OpenMappedExeConfiguration method. There’s a good example there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to create a simple pan and zoom app using silverlight 4, but
I am trying to create a simple program using Gstreamer to take the input
I am trying to create a simple python script that deploys my EAR file
I am trying to create a simple Network Tool to ping all possible IPs
I'm trying to create simple C++ incremental-build tool with dependency resolver. I've been confused
I have created a very simple ASP.NET application with a web.config file, which contains
I'm just trying to create a new MySQL database with a few simple tables.
I'm trying to create simple script that subscribes a user to a company calendar.
I'm studying webrat and cucumber and trying to create simple example. Here is my
I setup a Paypal Sandbox account and am trying to create simple purchases through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.