Trapping tab key

  • Thread starter Thread starter Sebastien Brun
  • Start date Start date
i tried to approach this many different ways (from within VB.Net, that is,
not Win32API...)

the best solution i've come up with is to trap for tab in the KeyUp event of
the surrounding controls - i.e. the previous control should trap SHIFT+TAB
in KeyUp, and the next control should trap TAB in its KeyUp.

kludgy as it is, this should allow you to achieve the 'trap tab key in a
text box' functionality, if in a roundabout way.

HTH! =)

ps - should work with any control, not just textbox
 
Back
Top