Dynamic modify App.config

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

I my login form, I want to let the user choose which database (there are
A,B,C three databases )
I know I can use App.config to change the SQL server (database name).
However, I don't know how to do in my form ??
Please give some adivce.
 
Agnes said:
I my login form, I want to let the user choose which database (there are
A,B,C three databases )
I know I can use App.config to change the SQL server (database name).
However, I don't know how to do in my form ??

Typically, an application doesn't write to its config file. You'll find
some articles on this topic here:

Storing and loading user preferences
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=userpreferences&lang=en>
 
Hi:

I've the same problem, if i modify the App.config manually it will
reset back to original each time the application run, if i exclude the
App.config in my solution, the app.config will deleted each time the
application run.

What am i doing wrong ?

Thanks
JCVoon
 
Back
Top