Results 1 to 3 of 3

Thread: Is "Delete" key pressed

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Is "Delete" key pressed

    How do i detect if the delete key has been pressed?

  2. #2
    Junior Member
    Join Date
    Dec 2005
    Posts
    31

    Re: Is "Delete" key pressed

    if you have it on KeyDown event, you can do the following:
    VB Code:
    1. If e.KeyCode = Keys.Delete Then
    2.       ' Delete Key was pressed
    3.    End If

  3. #3
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Is "Delete" key pressed

    Where do you wish to detect this? Kevin's code should work, you may need to change the keypreview property to true on the form...

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