NumericUpDown - ValueChanged + Maximum

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

Guest

NumericUpDown does not cause the ValueChanged event to fire if you enter some value using keyboard and perform a tab! You need to press return key for some strange reason. And 'coz of this, it does not validate the new value with the Maximum value you had set..

Works fine if you use the up/down controls though

Is there something like TreatTabAsReturn

-Nitin
 
Add an event handler for the Leave event. When focus is lost, the
component will do whatever you tell it to, I used the same function
for ValueChanged as I did for Leave.

-Ryan
 
Back
Top