Tab key intercept



Ok, I've searched and searched and searched and can only find one
answer to this but I can't use that soluction.

I know the Tab key can only be intercepted in the KeyPress event and
not the KeyUp or KeyDown events. I know that all the controls on the
form have to have the TapStop property set to False in order to
capture the Tab key. But how can I intercept a Shift+Tab key
combination. KeyPress doesn't give you the Shift state only KeyUp and
KeyDown do. How can you really intercept the Tab key in the KeyUp and
KeyDown events.

The only way I've found is to hook the Message loop but that makes
debugging in the IDE near impossible.

Does anybody have a good idea for this?

Thanks!
.



Relevant Pages

  • Re: Tab key intercept
    ... > not the KeyUp or KeyDown events. ... > capture the Tab key. ... But how can I intercept a Shift+Tab key ...
    (microsoft.public.vb.general.discussion)
  • Re: Tab key
    ... Co-founder ... >moving to the next textbox on the form when the Tab key is pressed. ... I tried to trap the keypress ... KeyPress and KeyDown events put apparently the Tab key does ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Tab key intercept
    ... KeyUp and Keydown don't fire when the tab key is ... pressed so how do I test GetKeyState when no event has fired. ...
    (microsoft.public.vb.general.discussion)
  • Tab key
    ... moving to the next textbox on the form when the Tab key is pressed. ... KeyPress and KeyDown events put apparently the Tab key does not fire ...
    (microsoft.public.dotnet.framework.compactframework)

Loading