NumericUpDown bound value

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a problem w/ a data-bound numeric updown control. If I modify the
control's value via the keyboard (i.e., type in numbers), then call
AcceptChanges, the new value is not saved and reverts to the old. But if I
use the mouse to click on its up-down arrows, the value gets saved fine. I'm
suspecting that this may be a bug w/ the control so what I did was put the
following code in KeyDown:

updAge.Value = updAge.Value

This solves the problem but I'd like to know if anyone else encountered this
behavior or has a better workaround? Thanks =)
 
You may need to tab outof the control, or change focus away from the control
for the value to get commited to the data source.
 
Nope, tabbing out or moving focus away from the control still doesn't cut it.
 

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

Similar Threads

NumericUpDown 1
NumericUpDown ignores Minimum/Maximum 2
Number Textbox 7
NumericUpDOwn 1
NumericUpDown control with VisualStyles on Vista 1
Empty NumericUpDown 2
NumericUpDown problem 4
NumericUpDown 5

Back
Top