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 991009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:02:16+00:00 2026-05-16T06:02:16+00:00

well i basically cant add an app.config file to my win forms project. and

  • 0

well i basically cant add an app.config file to my win forms project.
and i dont know if the application actually uses it or no.
i used “Add” > “New Item” > “Application Configuration File” but well i dont know if the app reads the data from the file or no.
so how can i know that the app actually reads that file?
thanks

  • 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-05-16T06:02:16+00:00Added an answer on May 16, 2026 at 6:02 am

    The file will be called "yourappname.exe.config" in the output directory of your project. In order to test whether your application uses the file or not you can add a simple test to the code:

    In the app.config file:

    <configuration>
       <appSettings>
           <add key="testValue" value="Testing testing, one two three" />
       </appSettings>
    </configuration>
    

    Basically anywhere in your application’s code (preferably code that is executed during startup):

    MessageBox.Show(ConfigurationManager.AppSettings["testValue"]);
    

    You should see a message box with the value from the config file.

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

Sidebar

Related Questions

well, I am trying to include a header file in my project, while the
Well basically, one of my mates was practicing JS and he had an idea
well i have a configuration like this in the components part of my config
Well, I have a application which somehow requires some system resources, but how do
I'm building a Zend-based Web app that will permit third-party extensions. Essentially, this application's
I am well into creating my 2d remake of minecraft in java. I know
I am trying to get all the unique combinations of bits(real interesting..I know..zzz). Basically
Well basically, I'm having a problem, how to make a function in haskell to
Well I have 2 .jar files. The main jar file is the jar file
Basically I need to connect to another app's database, I've done the connection in

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.