NumericUpDown validate

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

Guest

Is there a way to check whether the current value in a NumericUpDown control
is valid? Whenever I check the 'Value' property, it always automatically
brings itself back within the limits specified by the Minimum / Maximum
properties which makes it impossible to check the compare the value manually.
 
You can check the .Text property in the ValueChanged and LostFocus events
before accessing the Value property.


Barguast said:
Is there a way to check whether the current value in a NumericUpDown control
is valid? Whenever I check the 'Value' property, it always automatically
brings itself back within the limits specified by the Minimum / Maximum
properties which makes it impossible to check the compare the value
manually.
 

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

Back
Top