Configuration file

  • Thread starter Thread starter zoneal
  • Start date Start date
Z

zoneal

I need some help with a configuration file. I need to know how to make
a key in a configuration file and change the value from a textbox or a
checkbox.

Please help!
 
What kind of configuration file? If you're referring to the app.config
file, you can add keys to the file, but there is no provision for
changing the value of them at runtime. You can use standard xml code
to edit the file. Note that the file is only read at the startup of
the app.

If you could provide a little more detail, it would be helpful.
 
Ok, what i want to do is have it so when the user clicks on the
checkbox it saves the value of textbox1 to the file. Then when the
application restarts the contents is loaded back into the textbox from
the file.
 

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

Back
Top