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.
 
Back
Top