Solved

TabStrip ZOrder setting

Posted on 2007-03-21
2
307 Views
Last Modified: 2010-05-18
I am using Visual Basic 6.
I have a tabstrip (SSTab1) with 9 tabs.
I want to have the 1st tab as the default tab no matter where I was when I compiled the program.
Looking at the help file it looks like I can use Zorder to do this but I can not get it to work.
How do I use the code and where does it have to be placed.?
Also is it possible to insert a fresh tab on a tabstrip between two previously coded tabs?
0
Comment
Question by:SINCO
[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
  • 2
2 Comments
 
LVL 1

Expert Comment

by:scottmichael2
ID: 18766411
This should work...
Private Sub Form_Load()
    TabStrip1.Tabs(1).Selected = True
End Sub

Right click the TabStrip control and select Properties.  Use arrow buttons on Tabs tab to scroll to the tab to the left of the one you want to add (if you want a tab between tab 2 and tab3 then scroll to tab 2).  Click Insert Tab.  This will place the new tab right after the previously selected tab.
0
 
LVL 1

Accepted Solution

by:
scottmichael2 earned 500 total points
ID: 18766477
Oops - wrong tab control - sorry.  This is how you get it to select the 1st tab every time:
Private Sub Form_Load()
    SSTab1.Tab = 1
End Sub

Unfortunately, I don't think there is a way to insert a new tab in the middle with this particular tab control.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

730 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