.net - Updating numbericUpdown on runtime in c# -


i updating numeric updown on runtime such compute value "x" on runtime , set minimum , maximum value of numeric updown.

numud.minimum=x/2; numud.maximum=x; 

but problem is not updating. tried call update() , refresh() function still not working. body can guide me how that. thanks

try below code , check if minimum value being displayed set 10 or not.

 int x = 20;  numud.minimum = x / 2;  numud.maximum = x; 

because having feeling value of x must 0 must having feeling values not getting set.

looking comments updated answer this... below image show actual , needed code. revised answer


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -