0

I have vb .net project that use config file to setting the connection. Existing i have to open config file to change the value of app setting in that file, but i think it's not user friendly, so i want to change the value at .exe.config file using form, do anyone knows how to do that?

Hermanto51
  • 13
  • 8
  • possible duplicate of [How to write to the main exe's .config userSettings section?](http://stackoverflow.com/questions/629143/how-to-write-to-the-main-exes-config-usersettings-section) – Simon MᶜKenzie Feb 05 '15 at 01:42
  • 1
    nope, i talk about vb.net, but thank you .. – Hermanto51 Feb 05 '15 at 01:55
  • 1
    Same thing - it's all .NET. – Simon MᶜKenzie Feb 05 '15 at 01:59
  • http://stackoverflow.com/q/18270420/62576 – Ken White Feb 05 '15 at 01:59
  • The question linked to by Ken White loads the config file as a standard XML document but, given that the .NET Framework includes types specifically designed to work with config files, you should use that specialised functionality instead. Here's an example: http://www.vbforums.com/showthread.php?532768-NET-2-0-Protected-Configuration-(Encrypting-Config-Files)&highlight= – jmcilhinney Feb 05 '15 at 02:11
  • I use the source code in vb forum via url given by Ken White, it works, thanks .. – Hermanto51 Feb 05 '15 at 03:55
  • ups I mean url from jmcilhinney, Hello jmcilhinney, i want to mark your answer as correct answer, please add your comment to answer column .. – Hermanto51 Feb 05 '15 at 03:56

0 Answers0