very easy, I've made 2 projects as you write.
and I've made an app.config file in the project, like this:
= "1.0"= "utf-8"
<configuration>
<! - ....... ->
<! - ....... ->
<connectionStrings>
<add name="TEST" connectionString="Application 2"/>
</ ConnectionStrings>
<appSettings>
<add key="App setting" value="Application 2"/>
</ appSettings>
</ configuration>
as you can see, I gave two settings.
The first is the connectionString and appSetting
connectionString used to store the configuration database, you may be able to use the appSetting
change the file name as the name of your application, for example MyApplication.exe.config, before the name was changed app.config
The following configuration code to get inside MyApplication.exe.config
Configuration.ConfigurationManager.ConnectionStrings ("TEST"). ConnectionString
or
Configuration.ConfigurationManager.AppSettings ("App settings")