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.
 
Back
Top