Results 1 to 4 of 4

Thread: capturing TABs

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    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.

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316

    Post

    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

    [email protected]

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    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 :-)

  4. #4
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316

    Post

    Another thought. If you want to know when they have moved within a grid look at leavecell and entercell as well

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width