Private Sub BurnText1_KeyUp (KeyCode As Integer, Shift As Integer)
If (KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 96 _
And KeyCode <= 105) Or (KeyCode = 8) Or (KeyCode = 32) Or (KeyCode = 191) _
Or (KeyCode = 110) Then
Else
BurnText1.Text = ""
End If
End Sub
that's the code i've used and it works like a charm.. now, if you want to trap for...
User Profile
Collapse
-
its ok guys.. i used the vbkey constants so that any values entered other than the supposed to be values only would be "cleared" right away.Leave a comment:
-
how to trap this?
in a textbox, users should input numbers and if letters are inputted, it will create an error that only numbers are accepted. please help me. i am using vb6 and windows xp. thanks.
No activity results to display
Show More
Leave a comment: