mike Delvotti

mike Delvotti

  • NA
  • 262
  • 0

Change Connection String in app.config with code

Mar 13 2013 2:15 PM
Guys,

This is a long shot, but can you change the connection string in the app.config on a windows form app with code?

I want to launch my app and give a choice of which database it loads, i.e. my application can load data from 2 different databases but i need to swap the connection string via a user control (like a button click) to do this.

Is it possible?

Answers (1)