Numeric Text Box

partha.majumdar

Active member
Joined
Aug 13, 2006
Messages
33
Location
Kolkata
Programming Experience
10+
Dear Sir,

How can I make a Text Box to accept only digits in VB.Net. Also, how can I ensure that a value is definitely provided in the control. I know I can check all this at the time of submitting the data on the form or at the time of loosing focus on the control. But I would like to restrict the entry of any other characters when the input is being provided from the keyboard. I am looking for something similar to the DocumentPage object in Java.

Thanks in advance,

Regards,
 
If you only care about the end and not the means, use the NumberBox in the WFC library from my signature. It's the most complete implementation of a numeric text field I've seen in a free library.
 
Back
Top