about Settings.settings

R

Rick

Hi guys, i have a question about Settings.settings

I have some datasets in my app, each dataset uses a connection (myCnn)
created in Settings.settings

if i use
Properties.Settings.Default.myCnn="otherStringConnection";

i got

Error 3 Property or indexer 'Usuarios.Properties.Settings.myCnn cannot be
assigned to -- it is read only F:\Treb\Usuarios\Usuarios\Form1.cs 96 13
Usuarios

its only read, how can i modify it? i want to load my string connection from
a text file and use it in all my app datasets

Regards.
 
D

Dave Sexton

Hi Rick,

Try setting the property through the indexer:

Properties.Settings.Default["myCnn"] = "otherStringConnection";
 

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

Top