What is the ASC for Backspace? This is my code right now to allow only 0-9 and -. I also want to allow backspace.
Thanks.
Code:Dim keyascii As Integer keyascii = Asc(e.KeyChar) Select Case keyascii Case Asc("0") To Asc("9") e.Handled = False Case Asc("-") e.Handled = False Case Else e.Handled = True End Select




Reply With Quote