VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Restricting text boxes to numeric text only

TJ Shreves  (1 Submission)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Mon 13th October 2003   Mon 8th February 2021

Restricting text boxes to numeric text only

API Declarations


I found that the "backspace" method froze my program quiet often, so I modified it to read a little differently.
How this works is quiet simple. It states that if a non-numeric text is entered, then the text box will read as whatever is in the quotations(""). So if the quotations("") are left empty as shown, then the text box will read as as if the text box were cleared. It has the same effect as the "backspace" method, just more addaptable. You could enter a phrase or comment in the quotations to advice the user to use numeric text only, ie.("numeric text only").

Rate Restricting text boxes to numeric text only (1(1 Vote))
Restricting text boxes to numeric text only.bas

Restricting text boxes to numeric text only Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters