locked
NumericUpDown RRS feed

  • Question

  •  How can i set numericupdown  control to recieve

    1)-ve numbers so when i go past 0 I then go to -1 -2

    2) can it go past 100 ?

     3)how can i set it so it can only receive integers and not strings?

     

    Monday, February 23, 2009 5:39 AM

Answers

  • 1: Yes this is possible just change the minimum below zero.

    nud.Minimum = -10; 

    2: And yes it can also go beyond 100.

    nud.Maximum = 2349;  

    3: It does only accept integers. But currently you can either edit the value and input anything (numbers and other characters, after loosing focus only the numbers are accepted) or input nothing and only use the up and down buttons. To disable entering input directly by:

    nud.IsEditable = false;
    Monday, February 23, 2009 6:51 AM