Deleting a tab


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Deleting a tab

Hybrid View

  1. #1
    Join Date
    Jun 2004
    Location
    Houston area
    Posts
    557

    Deleting a tab

    OK, on the SSTab.....

    Is there a way to delete tabs 4 and 7 of a 7-tab SSTab?

    TYVM,
    L
    A balanced diet is a cookie in each hand.

  2. #2
    Join Date
    Jun 2004
    Location
    Houston area
    Posts
    557
    I already tried deleting the controls in the tab and reseting all the properties, etc. There's GOT to be a way!!!!
    A balanced diet is a cookie in each hand.

  3. #3
    Join Date
    Jun 2004
    Location
    Houston area
    Posts
    557
    I used this in the form load event:

    Code:
    
    SSTab1.TabVisible(4) = False
    SSTab1.TabVisible(6) = False
    
    That made them disappear but now it LOOKS funny! The control is still as wide as it was but the 4 tabs across the top don't go all the way to the right-hand side!

    I'll keep searching!

    L
    A balanced diet is a cookie in each hand.

  4. #4
    Join Date
    Jun 2004
    Location
    Houston area
    Posts
    557
    SOLVED!

    I did the above and then set the TabsPerRow to 5 and now it WORKS!

    So, to recap:

    Set the TabVisible property to false for the tab you want to delete (in the form load event) and then set the TabsPerRow property to whatever's left.

    It is MUCH easier to work on the form if you set the TabsPerRow property at runtime!

    SO, in a 7-tab SStab where you want to delete #4 and #7, do this:

    Code:
    
    SSTab1.TabVisible(4) = False
    SSTab1.TabVisible(6) = False
    SSTab1.TabsPerRow = 5
    
    Seems like MS would fix this little boo-boo, doesn't it?

    L
    Last edited by Laurel; 02-08-2005 at 01:11 PM.
    A balanced diet is a cookie in each hand.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center