Private Sub txtInteger_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 8, 9, 13
exit sub
Case Else
if Chrw(keyAscii) Like "[0-9]" then exit sub
KeyAscii = 0
End Select
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.