Something like...
Textbox1.text = Left$(Textbox1.text, len(Textbox1.text)-1)
Sorry, I leave correcting the syntax to you. Plus the code only fires when you enter text so no trouble with 1 char long.
Bob
Hi, I'm playing with Visual Basic, and I'm trying to do an automatic backspace on a text box once I enter a non numeric character, but I haven't been able to do so. The only thing than I have come to is clear everything, when just is one character the problem.
This is the code:
Private Sub Textbox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Textbox1.TextChanged
If Not IsNumeric(Textbox1.Text) Then
Textbox1.Clear()
End If
End Sub
Any help would be grateful, except google ones. Thanks in advance.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic