Results 1 to 12 of 12

Thread: [RESOLVED] remove a tab

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    193

    Resolved [RESOLVED] remove a tab

    This is another silly question, but I can't figure it out.. I am using a Tab control,, I had 3 tabs at one point, but now I only want 2, I don't see anywhere to remove a tab, it is the last one, so should be easy.. If I reset the tab index number, I get "Invalid Property Value".. I don't want this done in code, I found that, but set permanently in application... Thanks so much In case it matters it is SSTab control.

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: remove a tab

    just change the Tabs property in the property window. You'll probably also want to change the TabsPerRow property.

  3. #3
    Addicted Member sigid's Avatar
    Join Date
    May 2006
    Location
    Massachusetts, USA
    Posts
    182

    Re: remove a tab

    Debbie - in the IDE, if you right-click on the SSTab you should get a "properties" window that will allow you to add, delete, etc your tabs...is this what you had in mind?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    193

    Re: remove a tab

    thanks for both replys, but I have done both, they are kind of obvious and I thot should work, but that is where I get my error. Have either of you actually tried those or just assuming that they work?? I may just create the thing over again.. Thanks again..

  5. #5
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: remove a tab

    you said you got your error when you modified the TabIndex property - that's got nothing to do with the SSTab control, it determines what order the controls are accessd by pressing the Tab key.

    Have you tried modifying the Tabs property? It should (does) work...

  6. #6
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: remove a tab

    You need to remove any controls from a Tab before the Tab can be deleted.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    193

    Re: remove a tab

    You are brilliant... thanks so much....

  8. #8
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Re: [RESOLVED] remove a tab

    I have 4 tab, I want only 2 tab... I want to delete index 0 and 1. How?

  9. #9
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: [RESOLVED] remove a tab

    You have to move everything from tabs 2 and 3 onto tabs 0 and 1 and then delete tabs 2 and 3.

  10. #10
    New Member
    Join Date
    Aug 2007
    Posts
    2

    Re: [RESOLVED] remove a tab

    I've read this post and it's exactly what I'm looking for. However, this isn't working for me. I have a SST with 4 tabs (4 Tabs and 4 TabsPerRow). I need to delete the second tab. I already have all the controls off that specific tab, but I can't seem to delete it. I've tried changing the tabs property to equal 3, but I still get that 'Invalid Property Value'. Can anyone clarify this any further?? Thanks ahead of time.

  11. #11
    Member
    Join Date
    Aug 2007
    Posts
    38

    Re: [RESOLVED] remove a tab

    tllsettler : that wouldn't work because it always deletes the last tab.
    Copy the contents of the 3rd tab to the 2nd and the 4th to the 3rd, then change the number of tabs. I think it will work that way.

  12. #12
    New Member
    Join Date
    Aug 2007
    Posts
    2

    Re: [RESOLVED] remove a tab

    Ahhh... nevermind. I've seen the light. It automatically takes the last tab as the one to be deleted, so I needed to make sure all controls were off that one. A fine job of copy & pasting.

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