Keypress detection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gord

    Keypress detection

    How does one detect (in code) when the Delete key has been pressed. The
    KeyPress event doesn't respond to this keystroke.

    Thanks,

    Gord


  • rkc

    #2
    Re: Keypress detection

    On Sep 27, 1:06 pm, "Gord" <x1gor...@telus .netwrote:
    How does one detect (in code) when the Delete key has been pressed.  The
    KeyPress event doesn't respond to this keystroke.
    >
    Thanks,
    >
    Gord
    Trap for a Keycode value of vbKeyDelete in the KeyUp event of a
    particular control or the form itself depending on what you're up to.

    You will have to set the form's key preview property to yes to trap
    it at form level.

    Comment

    • Gord

      #3
      Re: Keypress detection

      Thanks rkc. I think I can work with that.

      Gord

      "rkc" <rkc@rkcny.comw rote in message
      news:8108cb5e-2e9d-4310-8377-17fbb1a0bd8a@l6 4g2000hse.googl egroups.com...
      On Sep 27, 1:06 pm, "Gord" <x1gor...@telus .netwrote:
      How does one detect (in code) when the Delete key has been pressed. The
      KeyPress event doesn't respond to this keystroke.
      >
      Thanks,
      >
      Gord
      Trap for a Keycode value of vbKeyDelete in the KeyUp event of a
      particular control or the form itself depending on what you're up to.

      You will have to set the form's key preview property to yes to trap
      it at form level.


      Comment

      Working...