Results 1 to 8 of 8

Thread: How the hell do I do this in VB?

  1. #1
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts

    How the hell do I do this in VB?

    OK, I've managed to pick up a lot of VB myself so far, but this is really annoying me.



    I have this options dialog set up. How the hell do I modify the other tabs? I can only "see" the first tab, I can't "get to" the others.

    Cheers,
    Unts.
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  2. #2
    Member
    Join Date
    Aug 2003
    Location
    Wimbledon
    Posts
    141
    Thanks
    0
    Thanked
    0 times in 0 posts
    Do you mean how do you get to the other tabs to add controls in Visual Basic?

    1 Right click on the tab control to get the properties window
    2 Click the <> buttons in the top left where is says 'Current tab'

  3. #3
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    Can't find it!

    The only section with <>'s in it is this one:

    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  4. #4
    Senior Member
    Join Date
    Jul 2003
    Location
    ZA ✈ UK
    Posts
    622
    Thanks
    0
    Thanked
    0 times in 0 posts
    VB is eeeeeeeeeeeeevil! Tabs are index-based. That is, each tab is stored in an array, so the first should be something like ctrlTabs(0), the second ctrlTabs(1), etc. But with VB, you never know - they could be 1-based, as in, the first is ctrlTabs(1), etc.

    Anyway, that's the right section - click the > button to get taken to the next tab's values.

  5. #5
    Member
    Join Date
    Aug 2003
    Location
    Wimbledon
    Posts
    141
    Thanks
    0
    Thanked
    0 times in 0 posts
    Which version of the tab control are you using. The one i have installed is Microsoft Tabbed Dialog Control (sp5). My property page looks like this...



    Do you have VB service pack 5 installed?

  6. #6
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    I installed SP5 - well I downloaded and ran it, but my tab property pages doesn't like like the one above.

    Anyway, I can change the number of tabs, the captions, titles, tooltips etc. But in the form design view I can only add objects onto the first tab. That is the problem. Even if I go into the propery page and move along to another tab, it doesn't select that tab in the design view.

    Help
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  7. #7
    Member
    Join Date
    Aug 2003
    Location
    Wimbledon
    Posts
    141
    Thanks
    0
    Thanked
    0 times in 0 posts
    My version of the tab control seems to work fine. In the designer to change tab all I have to do is click on the tab. I can add button controls to each tab with no problem.

    Try checking the version of the tab control you are using. Right click on the toolbox and select 'Components'. Scroll down the list until you see the tabbed dialog control as below as below.



    If you installed SP5 after you added the tab control to your form it is still probably referencing an older version of the control.

  8. #8
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    Excellent, thanks very much for the help guys - and no thanks to VB6, lol!
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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