title: How to get the key value from the AppSettings.Config file?
body: <p>I'm trying to get my key value set in the appsettings.Config file but seems not working. </p>
  
  <p>This is what i wrote for that. The code is called from the constructor of an MDI file and its returning only null value. Anybody know why?</p>
  
  <pre><code>     var getValue = ConfigurationSettings.AppSettings["ShowQueryTextbox"];
  </code></pre>
  
  <p>I also tried with ConfigurationManager.AppSettings . That too didnt work.</p>
  
  <p>My AppSettings Code is as follows.</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;appSettings&gt;
      &lt;add key="ShowQueryTextbox" value="true"/&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>