Range based controls like
NumericUpDown usually provide simple properties like
Minimum and
Maximum (or similar names).
They usually constrain the input value regardless of the editing method involved (typing with keyboard or clicking with mouse).
Are you using
System.Windows.Forms.NumericUpDown control?
if yes then you can look the following MSDN page:
NumericUpDown.Maximum Property
Regards,
Daniele.