Click here to Skip to main content
15,888,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i take numeric updown contro
i click up control it came 1 to 100
how to set the values for down control -1 to 100
Posted
Comments
[no name] 25-Apr-14 7:38am    
Did you look at the documentation for that control and see if there was maybe a property that sets the values?
hilbert hussen 25-Apr-14 7:43am    
i check it but no property is not there

1 solution

Set NumericUpDown.Minimum Property[^].
C#
numericUpDown1.Minimum = -100;
 
Share this answer
 
Comments
hilbert hussen 25-Apr-14 7:50am    
I tried this but not working
It should work. What exactly you are getting now?
hilbert hussen 25-Apr-14 7:55am    
when i click up arrow getting values 1to 100
but clicking down arrow not getting any value

i need,when i click down arrow will get -1 to -100
How did you set the minimum and maximum value? Code snippets?
lukeer 25-Apr-14 8:16am    
That will be -100 to -1.
nud1.Minimum = -100;
nud1.Maximum = -1;

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



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