Application Settings and Cancel Button

  • Thread starter Thread starter André Hänsel
  • Start date Start date
A

André Hänsel

Hi list,

when I use Application Settings bound to checkboxes of my
configuration form, how do I implement a "Cancel" button?

I thought I could restore a copy of Properties.Settings.Default but it
is write protected.

Regards,
André
 
Hi list,

when I use Application Settings bound to checkboxes of my
configuration form, how do I implement a "Cancel" button?

I thought I could restore a copy of Properties.Settings.Default but it
is write protected.

You can restore properties to their default values by calling Reset()
on the Settings object, or you can reload the values from config
(which isn't the same thing) by using Reload(). If you save settings
immediately upon clicking "OK", then Reload() is probably what you
want.
 

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