Click to See Complete Forum and Search --> : capturing TABs
netSurfer
Dec 6th, 1999, 09:04 PM
I need tpo capture when the user hits the tab key. Basically, I have a grid on a tab. I need to capture when they click the Tab key. I'm not sure which control to put it in and which SUB to use. KEYPRESS, UP or DOWN. I've tried a couple but doesn't seem to work the way I want. I don't have access to help because the disk I got was fried and I'm waiting to get a new one.
john_murphy
Dec 6th, 1999, 09:26 PM
You said click and press ??
if you want to know when someone clicks on an object (be it tab or anything) put it in the click event.
Easy way is to put msgbox("I AM HERE") in the click event to see when you get here.
If you want to know when the tab is pressed this is a different matter. If you want to know that if tab is pressed your objects get selected this is called has focus so put something in the gotfocus event (or lostfocus if exited).
I hope this answers your question
if not mail me
john_m_murphy@hotmail.com
netSurfer
Dec 6th, 1999, 09:32 PM
It didn't really answer the question, which was to capture the TAB event but it gave me a better idea. I just dumped the code when the control loses focus and it worked. Thanks :-)
john_murphy
Dec 6th, 1999, 09:32 PM
Another thought. If you want to know when they have moved within a grid look at leavecell and entercell as well
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.