?
Solved

TabStrip Control

Posted on 1998-08-14
6
Medium Priority
?
311 Views
Last Modified: 2011-09-20
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.
0
Comment
Question by:Gutter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 9

Expert Comment

by:Dalin
ID: 1468851
Gutter,
As I know, You just have to disable all the controls in that tab.
Regards
Dalin
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1468852
I'm sorry, but this cannot be done with the tab strip.

I might suggest you look into purchasing VSOCX from Videosoft (www.videosoft.com)

I submit this as a comment.  If you find that I am right, let me know and I'll resubmit it as an answer.
0
 
LVL 1

Accepted Solution

by:
jonder earned 600 total points
ID: 1468853
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

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Expert Comment

by:jonder
ID: 1468854
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
        Else
            ' This will hold the Tab reference of the currently visible TAB!
            Previous_Tab = SSTab1.Tab
        End If
End Sub
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1468855
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.
0
 

Expert Comment

by:gpbaldazzi
ID: 4139522
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
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question