-
I was just wondering why the Delete key (DEL) works in text boxes...... but the Backspace key does not..
Is there anyway to enable the backspace key in textboxes, or make it work?
I don't see a backspace key reference on the ASCII chart I have..
Thanks for any info :)
-
-
Ack! I figured out why - but not how to fix it!
I'm using a "NON-Number-key" filter on all the textboxes:
Private Sub GameMax_KeyPress(KeyAscii As Integer)
If IsNumeric(Chr(KeyAscii)) <> True Then KeyAscii = 0
End Sub
How could I check for a backspace keypress to fix this?
-
The backspace is ASCII character 8. Use a select case instead:
Code:
Select Case KeyAscii
Case 48 To 57 'Numbers
Case 8 ' Backspace
Case 10 'Linefeed
Case 13 'Carriage return
Case Else
KeyAscii = 0
End Select
- gaffa
-
Thanks.... Thants new to me.
Works great :)