CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: sstab control

  1. #1
    Join Date
    Jun 2002
    Location
    West Virginia
    Posts
    131

    sstab control

    Hi guys,
    I have a tab control that I have text files in them. If one of files in the middle is closed how do I delete that tab.
    eg 3 tabs I want to kill the 2nd one.
    Any help is appreciated.
    Wayne

  2. #2
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210
    you can change the number of tabs at runtime using the tabs property :
    sstab.Tabs=N

    but i don't know how to remove a certain tab.

  3. #3
    Join Date
    Jun 2002
    Location
    West Virginia
    Posts
    131
    Thanks for your reply. I have just about decided to leave it blank and load the next file into it or move all the tabs ahead down and delete the last one.
    Wayne

  4. #4
    Join Date
    Jul 2003
    Location
    Florida
    Posts
    651
    You can hide the tab instead of deleting it. That way all your indexes will stay the same.

    'This hides the 4th tab (0-based)
    tab1.TabVisible(3) = False
    I'd rather be wakeboarding...

  5. #5
    Join Date
    Jun 2002
    Location
    West Virginia
    Posts
    131
    Thanks
    I hadn't thought about that.
    Wayne

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

Featured