Interventi.Properties.Settings Connection String

  • Thread starter Thread starter spooke
  • Start date Start date
S

spooke

Application.Properties.Settings a = new Interventi.Properties.Settings();
a.InterventiConnectionString = "Data Source=" + txtIP.Text.Trim() +";Initial
Catalog=Interventi;Persist Security Info=True;User ID="+
txtUTCOD.Text.Trim() +";Password=" + txtUTPWD.Text.Trim();
Property or indexer cannt be assigned to -- it is read only
If i whant in some way modify the connection string to my data source?
I whant that my user can modify the ip of the server where it is the data
sourceregards
regards
gian paolo
 
Change scope of this setting (Poject properties -> Settings) to "User".
Application settings are read only.
 
And don't use Settings constructor. Use Default property. Settings
class is Singleton.

Application.Properties.Settings.Default.InterventiConnectionString =
"....";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top