Hi, all

How can I make a text box such that it accepts numbers only? Does anybody know how can I achieve that? It would be helpful if somebody post some example programs or some links to such websites where I can get some resources regarding this thread.

Thanks to all in advance.....

Recommended Answers

Use the KeyPress events to check the character being entered. You can find a sample here.

Jump to Post

All 3 Replies

Use the KeyPress events to check the character being entered. You can find a sample here.

Thanks for your effort. Thanks once again...

I this is solved but if you are using the newer version of express 2005 you can simply create a masked textbox that only accepts INT values

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.