Adblock breaks this site

Adding Tabs?

Discussion in 'Programming General' started by Bbri06, Mar 17, 2007.

  1. Bbri06

    Bbri06 Apprentice

    Joined:
    May 21, 2006
    Posts:
    911
    Referrals:
    1
    Sythe Gold:
    0
    Adding Tabs?

    I am using Microsoft Visual Basics 2005 Express Edition and am wondering how I add a tab. I have tried the addtab method but it ses it is not declared. Any help please?
     
  2. cooladrrang

    cooladrrang Active Member

    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0
    Adding Tabs?

    maybe try reinstalling
     
  3. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    Adding Tabs?

    Code:
    TabControl.TabPages.Add("Tab name here")
    replace TabControl with your Control name

    look through it before you post ;)
     
  4. Skeletron

    Skeletron Guest

    Referrals:
    0
    Adding Tabs?

    Wow, there is a more easy way to do it! My way is:

     
  5. Bbri06

    Bbri06 Apprentice

    Joined:
    May 21, 2006
    Posts:
    911
    Referrals:
    1
    Sythe Gold:
    0
    Adding Tabs?

    Thank you again Skeletron, you really know your stuff.
     
  6. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    Adding Tabs?

    Umm ... did you not see how he said that there was an easier way to do it? By that I'm assuming he was aiming that at the code I posted ... lol.

    You're going to have to add controls at runtime if you want anything to be on the tabs though ...
     
  7. 5cript

    5cript Active Member

    Joined:
    Jan 22, 2007
    Posts:
    138
    Referrals:
    1
    Sythe Gold:
    0
    Adding Tabs?

    first make sure youve added a tab lay out panel then in properties click tabpages and the ... button a menu will pop up with more properties and..yea (I wasnt sure if you meant in vb5 or if the user wanted to add tabs)
     
  8. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    Adding Tabs?

    that would only predefine tabs though. Maybe he wants to create them at runtime.
     
< askin for advice | Jar >


 
 
Adblock breaks this site