Application settings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I use the data source window to connect to a database.
Because the location of the database might vary, I want to change the
connectionstring at runtime via my.settings.... but this is an application
setting which can't be changed at runtime.
I know how to accomplish a connectionstring in code, but then I would lose
the advantages of the central data source window.
Do you have a solution for this situation?

Many thanks in advance.
 
In the 1.1 framework, you can't fiddle with app.config or web.config. But
you can use an XML file of your own (or other type of file) to store it in,
or you can use IsolatedStorage. Will either approach work for you?
 
Back
Top