NumericUpDown 's ValueChanged event is not always fired

R

Ryan Liu

I notice
System.Windows.Forms.NumericUpDown's
ValueChanged event is not always fired, especially edit its text box
directly.

Is this a known bug or there is something I should pay attention for this
control?

Thanks,
Ryan
 
G

Guest

Per documentation - "For the ValueChanged event to occur, the Value property
can be changed in code, by clicking the up or down button, or by the user
entering a new value that is read by the control. The new value is read when
the user hits the ENTER key or navigates away from the control. If the user
enters a new value and then clicks the up or down button, the ValueChanged
event will occur twice."

In your case did you test by pressing enter key or tabbing out to the next
field?
 

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