It's possible to bind a property to an existing application setting using the designer, that way I don't have to write something like
textBox.Text = Settings.Default.Name;
when initializing my form.
Now it looks like the binding stops there, ie if I change the value of my setting, it won't update the value in my textbox and vice versa.
Is it normal or am I missing something?
I'll explain how I do it on windows forms with Visual Studio 2010. It is likely similar in newer versions.
ApplicationSettings
Click the ...
button to the right of (PropertyBinding)
Choose which setting you want the control bound to.
There is a more detailed tutorial at Exploring Secrets of Persistent Application Settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With