Solved

Removing Tab Control  Header

Posted on 2002-04-23
5
363 Views
Last Modified: 2010-05-03
Hi,

I have created a tab control with 5 tabs. I am using tab control just to organize the information however I want to change the active tab programatically. For that I need to remove/hide the header that let user change the tab. Can I hide the header somehow. Any help would be appreciated. Solution may be in VB.Net or VB6 however solution is required in VB.Net.
Thanks

Akhwand
0
Comment
Question by:akhwand
5 Comments
 
LVL 3

Accepted Solution

by:
kenspencer earned 50 total points
ID: 6963919
Hi,

I can give you a method where you do not have to hide the tab header but can retain control.  My example:

    A form with a tab control (named SSTab1) and a Command Button (cmdPgmTab)

Option Explicit

Dim Master As Boolean

Private Sub cmdPgmTab_Click()
Dim x As Integer

    Master = True
    x = SSTab1.Tab + 1
    If x = 3 Then x = 0
    SSTab1.Tab = x
           
End Sub

Private Sub Form_Load()

    Master = False

End Sub

Private Sub SSTab1_Click(PreviousTab As Integer)

    If Master = False Then
        Master = True
        SSTab1.Tab = PreviousTab
    End If
   
    Master = False
   
End Sub

This way you have programmatic control of the tabs (by setting Master = True and then setting the tab you want).

Ken
0
 
LVL 3

Expert Comment

by:kenspencer
ID: 6963924
By the way, my example just has 3 tabs; any number would work.

Ken
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 6964344
The easiest way to make the TABS "almost" disappear, is to set the Tab Height property to 1 (cannot set it to 0, as that is an "invalid value"), but with a height o 1 Twip, the tabs are essentially gone.

By the way, what you are creating is commonly called a "wizard", as it leads the user through the steps of the application, allowing the developer to have a great deal of control over what happens, and when.

This is precisely how the Package and Deployment Wizard functions, for instance.

Arthur Wood
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7660744
Hi akhwand,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Split points between: kenspencer and Arthur_Wood@devx

akhwand, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7755446
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange

Arthur_Wood: points for you at:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20463733.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replace Formatted Numbers with text 9 61
Use Multiple Forms 4 49
DIR issue 7 51
Using "ScreenUpdating" 6 55
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now