string exePath = System.IO.Path.Combine(Environment.CurrentDirectory, "WindowsFormsApp.exe");
// Get the configuration file.
Configuration config = ConfigurationManager.OpenExeConfiguration(exePath);
AppSettingsSection appSettings = config.Sections["appSettings"] as AppSettingsSection;
MessageBox.Show(appSettings.Settings["test"].Value);