Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

TabStrip Control

How do you disable a tab on a VB Tabstrip control so
that it is visible still, but grayed out.  The reason is so
that it is viewed as a future option in development.
1 Solution
As I know, You just have to disable all the controls in that tab.
I'm sorry, but this cannot be done with the tab strip.

I might suggest you look into purchasing VSOCX from Videosoft (

I submit this as a comment.  If you find that I am right, let me know and I'll resubmit it as an answer.
Place your Tab within your program then add the following line. This will prevent the user from changing the Tabs position.

Private Sub SSTab1_Click(PreviousTab As Integer)
    SSTab1.Tab = 0
End Sub

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

I have just reread your question, and to maybe help a little bit more;

                                      (TAB 0)          (TAB 1)     (TAB 2)       (TAB 3)
If you have 4 Tabs, ie:    Customer Info  |  Pricing  |  Shipping  |  Notes

But you don't have any information as of yet for SHIPPING, but all other options are available simple add the following

Global Previous_Tab = 0
Private Sub SSTab1_Click(PreviousTab As Integer)
        If SSTab1.Tab = 2 Then
            ' This Tab is not Available YET, Set Tab to the Currently Visible Position.
            SSTab1.Tab = Previous_Tab
            ' This will hold the Tab reference of the currently visible TAB!
            Previous_Tab = SSTab1.Tab
        End If
End Sub
This is a nice idea, but it doesn't actually disable (grey out) the tab.  The user will just click the tab and wonder why nothing is happening.
jonder solution works for SSTab control, not for TabStrip control.
If you use SSTab control, the easiest way is to use:
Sstab1.tabEnabled(index) = false

I don't konw a solution for TabStrip control
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now