PDA

Click to See Complete Forum and Search --> : ConfigurationSettings.AppSettings (Setting the Value Problems)


jordan23
Aug 2nd, 2004, 06:48 AM
Ok, I don't have any problems getting the data but I have problems setting the data at run-time. I am using



ConfigurationSettings.AppSettings.Set(key, value);


And I get "Collection is read-only"

Any ideas?

PT Exorcist
Aug 2nd, 2004, 09:40 AM
You can't set values, only read them. You have to put them manually in the XMl

jordan23
Aug 2nd, 2004, 10:19 AM
Ok, lets say I want to detect the window size when they close it and save it for the next time they open the application, how do I do that? You have got to be able to set and change the values in the xml file.

jordan23
Aug 2nd, 2004, 02:46 PM
Anyone?? Pirate, help!!! :(

Pirate
Aug 3rd, 2004, 03:27 PM
Yeah , PT Exorcist is right . You can only read the settings from App setting file . Here's an example on Edneeis's site . http://www.edneeis.com/example.aspx?ID=13