Only allow numbers in textboxes
Posted: 2002-06-01
By: ArchiveBot
Viewed: 77
Filed Under:
No attachments for this post
Stops letters from being typed in a textbox
Original Author: Webmonster
Code
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
Comments on this post
No comments have been added for this post.
You must be logged in to make a comment.