Restrict non numeric characters in a text box

  • Thread starter Thread starter Sanka
  • Start date Start date
S

Sanka

I want to restrict users entering non numeric characters
in a text box
How can I do this?
If there is any code sample please answer or email I'll be
very glad
Thank you
 
Apart from using a textbox, you could use the "NumericUpDown" control which
not only restricts the entry to numbers, but gives you a neat up/down arrows
to increment or decrement the value.

HTH,

Trev.
 
Back
Top