c# - Commit Application Settings Changes -


i'm binding user settings bunch of controls on winform dialog has ok/cancel buttons. while works great read in bindings in, commit binding changes if user clicks ok, , not if click cancel. there simplistic setting achieve rather managing reading , committing myself?

right now, let's have textbox binds user setting called "country". has "united states" in , if user changes "bolivia", committed typed instead of when ok button pressed.

to save settings, add in ok button event handler:

properties.settings.default.save(); 

to reload settings:

properties.settings.default.reload(); 

good luck!


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -