c# - how to set parameters to app.config file -


  1. i want set parameters own app.config file programmatically?

i tried following code 1 question not working.

configuration config =      configurationmanager.openexeconfiguration(application.executablepath);  config.appsettings.settings.add("param1", "value1");  config.save(configurationsavemode.minimal); 

my second questions

can access & update app.config file of other project if yes how that? plz guide me.

this code work me. take @ debug or release folder of application , see yourprojectname.exe.config file. application.executablepath 1 of this.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -