VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Only let Numeric values in the text box

by Joe Anzalone (3 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 5th March 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Only let Numeric values in the text box

Rate Only let Numeric values in the text box



'-- If anything is pressed besides 0 - 9 the dont let it be processed
    If KeyAscii < 48 Or KeyAscii > 57 Then
        If KeyAscii <> 8 Then KeyAscii = 0
    End If
End Sub

Download this snippet    Add to My Saved Code

Only let Numeric values in the text box Comments

No comments have been posted about Only let Numeric values in the text box. Why not be the first to post a comment about Only let Numeric values in the text box.

Post your comment

Subject:
Message:
0/1000 characters