473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

about Settings.settings

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="otherStringConn ection";

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.


Nov 15 '06 #1
1 1661
Hi Rick,

Try setting the property through the indexer:

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

--
Dave Sexton

"Rick" <za*******@gmail.comwrote in message
news:eb**************@TK2MSFTNGP03.phx.gbl...
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="otherStringConn ection";

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.


Nov 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: davidw | last post by:
For a long time, I am looking for a way to setup a standard way XML inheritance for my project. I am sure the way I call it is not right, but I think what I need is reasonable. Basically, I want...
1
by: Nikhil Patel | last post by:
Hi all, What is the best way to allow the administrator of the application to select which columns are displayed in a Databound grid in an aspx form. I was thinking of creating a form and display...
3
by: Minh Khoa | last post by:
Please give me more information about delegate and its usage? Why do i use it and when?
16
by: LP | last post by:
Hello, I am trying to use .NET with Excel. I installed Office 2003 and selected ..NET programming suport option, so it installed all those PIA, as MS sugests. But I can not find a way to destroy...
22
by: KvS | last post by:
Hi all, to start with, excuse me, I'm still learning programming alltogether, probably I'm making some fundamental mistake here... I have the files settings.py, GUIclasses.py and main.py in...
8
by: Jamie | last post by:
Hello Newsgroup: This is my little rant about security and why we have home directories. You may choose to ignore it or disagree with it, that is your perogative and I won't care, but... this...
3
by: Franky | last post by:
I normally don't ask for help debugging but I've been looking at this for 4 days and am beginning to believe it may be caused by something I just don't know about. Below is a printout from a...
3
by: Joey | last post by:
Hello guys, I am currently working on a fairly complex asp.net project using C#, VS2005, and several third-party components. I have a question about how to remedy a problem with it and maybe...
2
by: Michel Perez | last post by:
Hi, am very newbie in Python, but as part of a project i need to load configuration -a settings.py file in the package dir- of my apps recursively, something like this: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.