Tim Reiter

Tim Reiter

  • NA
  • 8
  • 0

Having trouble refreshing the display of a NumericUpDown control

Mar 13 2008 8:24 PM
Hi All,

I'm having a problem with a NumericUpDown control.  If the user highlights the number and hits the backspace key the number is, of course, erased.  If the user then goes to another control in the dialog box, the number is still not displayed in the NumericUpDown.  The value is still there - if the user hits the up or down arrows the number is incremented or decremented and is displayed correctly.

I tried to fix this by declaring a Leave event handler that does something to redraw or otherwise update the NumericUpDown display whenever it looses focus.  I first tried using the Refresh() method, but that did nothing.  I then tried calling Hide() followed immediately by Show(), and that also did't fix the problem.

Anyone know what I could do to make this work right?

Thanks!

Answers (3)