Results 1 to 6 of 6

Thread: ssTAB

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147

    ssTAB

    I am using the ssTab control for my app, the problem i am having is:

    When i try to decrease the number of tabs:

    VB Code:
    1. frmMain.SSTab1.Tabs = frmM.SSTab1.Tabs-1

    i get the error:

    380:Invalid property value

    is there a way to reduce the number of tabs at runtime?
    Mik706

  2. #2
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    No, you can only set the amount of tabs at design time. You can however use the Tab control from Windows Common Control SP4.3 or whatever, and dynamically set the amount of tabs at run time.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147
    I can increase the number of tabs at runtime without any problems, so why can i not reduce them?
    Mik706

  4. #4
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    You can, oh must of got tab controls wrong ( i always do that )

    Im not sure, the code looks clean. Apart from i think you are taking frmM's tab away when frmMain is used

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147
    Yeah, sorry about that it's just a typo on the post it is correct in the code.
    Mik706

  6. #6
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    You cannot remove a Tab if it contains controls and you cannot remove the last tab.

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