Solved

Removing Tab Control  Header

Posted on 2002-04-23
5
369 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
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…

679 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