467,122 Members | 1,319 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,122 developers. It's quick & easy.

Restrict non numeric characters in a text box

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

Jul 21 '05 #1
  • viewed: 2151
Share:
2 Replies
I wrote this a while back and I think the grammar needs proofed before we
launch, but the code works.
http://www.knowdotnet.com/testsite/a...textboxes.html

HTH,

Bill
"Sanka" <sg****@hotmail.com> wrote in message
news:07****************************@phx.gbl...
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

Jul 21 '05 #2
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.

"Sanka" <sg****@hotmail.com> wrote in message
news:07****************************@phx.gbl...
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

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by vijay21@gmail.com | last post: by
2 posts views Thread by atif | last post: by
9 posts views Thread by Bernie Yaeger | last post: by
11 posts views Thread by Keith | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.