Results 1 to 2 of 2

Thread: [RESOLVED] Allow BACKSPACE

Threaded View

  1. #1

    Thread Starter
    Addicted Member craigreilly's Avatar
    Join Date
    Jul 2004
    Location
    Scottsdale, AZ
    Posts
    188

    Resolved [RESOLVED] Allow BACKSPACE

    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
    Last edited by craigreilly; Oct 8th, 2004 at 06:15 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width