Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is the property to set numericupdown not allow to more than the maximum number when user types manually ....This Iam handling in the keydown event but this event fires every time user enters any value.so is there is any direct propery to handle this case.
Posted
Comments
Samresh.ss 29-Jul-13 6:16am    
No you would have to handle it

1 solution

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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900