is there any way one can trap a tab key in a text box.....please hlp with any code
Printable View
is there any way one can trap a tab key in a text box.....please hlp with any code
the tab key is chr(9) or vbTab
all other controls must have thier tabstop property set to false, then
VB Code:
[color="#0000A0"]Private[/color] [color="#0000A0"]Sub[/color] Text1_KeyPress(KeyAscii [color="#0000A0"]As[/color] [color="#0000A0"]Integer[/color]) [color="#0000A0"]If[/color] KeyAscii = 9 [color="#0000A0"]Then[/color] Print "tab" [color="#0000A0"]End[/color] [color="#0000A0"]Sub[/color]
Is it not possible to trap tab key even when other controls have tabtop property set to true.....i've chekced it is not possile but is there any workAround.
set it to FALSEQuote:
Originally posted by satti charvak
Is it not possible to trap tab key even when other controls have tabtop property set to true.....i've chekced it is not possile but is there any workAround.