VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Only numbers in TextBox (1 line, it's too easy)

by MLazaro (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Wed 9th August 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Only numbers in TextBox (1 line, it's too easy)

Rate Only numbers in TextBox (1 line, it's too easy)



Private Sub Text1_KeyPress(KeyAscii As Integer)
   If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0
End Sub


Download this snippet    Add to My Saved Code

Only numbers in TextBox (1 line, it's too easy) Comments

No comments have been posted about Only numbers in TextBox (1 line, it's too easy). Why not be the first to post a comment about Only numbers in TextBox (1 line, it's too easy).

Post your comment

Subject:
Message:
0/1000 characters