can anyone please help me how can I set/store values in the app.config file using c#, is it possible at all?
Try the following code:
Configuration config = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath); config.AppSettings.Settings.Add("YourKey", "YourValue"); config.Save(ConfigurationSaveMode.Minimal);
It worked for me :-)