Results 1 to 2 of 2

Thread: App.config Question **SOLVED**

  1. #1

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Angry App.config Question **SOLVED**

    Hey all,

    I am using an App.config File to store some Information.

    Now the user can change these options. So what I am doing is load the app.config File to a XmlDocument (dont know if theres a better way of handling app.config files). I am changing some nodes, and the save the file with the myDom.save(filename) method.

    Next up I am reading the options from the document. But I always get the old options, not the new ones I just changed.

    Only If I close my app and reopen it I get my new Options.

    Is this app.config loaded into my app at startup or what? And how can I change options in it on the fly?

    Any help would be appreciated,

    Thanks, Stephan
    Last edited by Sgt-Peppa; Dec 8th, 2003 at 03:28 AM.
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  2. #2

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    Sorry forget about this post, i was just not calling my loadNew function after inserting in my app.config file. Sorry bout that again!

    Thanx

    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

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