VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Only allow numbers in textboxes

by Webmonster (6 Submissions)
Category: Miscellaneous
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

Stops letters from being typed in a textbox

Rate Only allow numbers in textboxes

This will stop letters being put in a textbox named text1
private sub text1_keypress(keyascii as integer)
select case keyascil
case is < 42
case 48 To 57
case else
keyascil = 0
end select
end sub

Download this snippet    Add to My Saved Code

Only allow numbers in textboxes Comments

No comments have been posted about Only allow numbers in textboxes. Why not be the first to post a comment about Only allow numbers in textboxes.

Post your comment

Subject:
Message:
0/1000 characters