Results 1 to 5 of 5

Thread: Tabs and Setting the Focus

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Washington D.C.
    Posts
    9
    Hi, here is the background of my problem:
    I have a series of tabs on my main form, and when the form is loaded I want to be able to set the focus on the first tab and gray out the others.

    My problem is that I am able to disable the other tabs, but for some reason, whenever the form loads, it sets the focus on one of the disabled tabs instead of the one enabled tab. I was wondering if anyone knows why this happens and how I could fix it. Thanks
    [email protected]
    http://www.youthtaskforce.cjb.net/

  2. #2
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510
    Check your Tab Index field for the object and make sure they go in order 1 2 3 4 5 6 for each tab. Then use the Setfocus command and specify the tab you want.

  3. #3
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602

    Or your could put

    SSTab1.Tab = 0

    in the form load, where 'SSTab1' is the name of your tab control.



    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  4. #4

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Washington D.C.
    Posts
    9
    Ok, thanks, I'll try it out and tell you all what worked.
    [email protected]
    http://www.youthtaskforce.cjb.net/

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