NumericUpDown - ValueChanged + Maximum

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
 
R

Ryan Phelps

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
 

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