Binding NumericUpDown.Value to an app setting only works in one direction

J

Jesse McGrew

Using Visual Studio 2005, I've placed a few NumericUpDown controls on a
form and bound their Value properties to user-scope application
settings. The bindings seem to work fine at design time, but only work
in one direction at runtime. When I open the form, the control values
are correctly set, but changing the values does *not* update the app
settings! Closing the form and/or calling
Properties.Settings.Default.Save() doesn't help. What's the deal?

Jesse
 
J

Jesse McGrew

Jesse said:
Using Visual Studio 2005, I've placed a few NumericUpDown controls on a
form and bound their Value properties to user-scope application
settings. The bindings seem to work fine at design time, but only work
in one direction at runtime. When I open the form, the control values
are correctly set, but changing the values does *not* update the app
settings! Closing the form and/or calling
Properties.Settings.Default.Save() doesn't help. What's the deal?

Nobody?

This seems like a glaring bug in the app setting bindings: the setting
value is copied into the control, but the only way to get the changed
value from the control back into the app setting is by copying it
manually in a ValueChanged (or FormClosing, etc.) event. The bug
doesn't seem to occur with other controls.

Jesse
 

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

Top