This is my app.config file looks like:
There is a better way by using the following steps:
1) Add a reference to System.Configuration
to your application.
2) Add the following block to your app.config file, within the configuration
section:
3) Retrieve the value and use it where needed with the following code (example from your answer shown):
param6.Value = System.Configuration.ConfigurationManager.AppSettings("ApplicationName")