Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Application Settings Binding Question...not Saving...

$
0
0

I've created a windows form, with several text boxes bound to user scoped application setting "variables". When I start the new application, they load the application setting values fine, but if I change the value of a text box while the application is running, and then click a button which calls "Properties.Settings.Default.Save();" the changes are not saved.

The only way I've been able to save the changed text is to force the application setting variable to be equal to the text box value. e.g.

Properties.Settings.Default.ListName_Capital = txtBxCapitalListName.Text;

then call the save method.

I thought that binding the application settings to a text box would allow me to bypass the forced or manual save of the application settings? Or did I miss a setup step?

P.S. I've bound each of the text boxes using the VS 2010 GUI. Not manually via code.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>