how to set parameters to app.config file
<ol>
<li>I want to set some parameters to my own App.Config file programmatically?</li>
</ol>

<p>I tried the following code  for 1 question but it is not working.</p>

<pre><code>Configuration config = 
    ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath);

config.AppSettings.Settings.Add("param1", "value1");

config.Save(ConfigurationSaveMode.Minimal);
</code></pre>

<p>My second questions is </p>

<p>Can I access &amp; update App.Config file of other Project if yes how to do that?
plz guide me.</p>
