Results 1 to 5 of 5

Thread: ConfigurationSettings.AppSettings (Setting the Value Problems)

  1. #1

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    ConfigurationSettings.AppSettings (Setting the Value Problems)

    Ok, I don't have any problems getting the data but I have problems setting the data at run-time. I am using

    Code:
    ConfigurationSettings.AppSettings.Set(key, value);
    And I get "Collection is read-only"

    Any ideas?

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    You can't set values, only read them. You have to put them manually in the XMl
    \m/\m/

  3. #3

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166
    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.

  4. #4

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166
    Anyone?? Pirate, help!!!

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width