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.....

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 meeting, networking, learning, and sharing knowledge.