Hey Everyone,
I have a text box, and i want to make sure the user doesnt ruin my program by putting in random chars instead of just numeric values.
Now i believe using something like
Private Sub Text1_KeyPress(ByVal KeyAscii As Integer)
If KeyAscii <> vbKeyBack Then
If Not IsNumeric(Chr(KeyAscii)) Then
KeyAscii = 0
End If
End If
End Sub
However i am using Visual Web Developer and it does not recognise _Keypress!!!1, i have the option to use AJAX but it will mess up the rest of my coding because everything else pretty much works and will work out very complicated to change it all
Can anyone help please?
thank you :D :-/