Solved

How to control TabStrip?

Posted on 1998-07-08
4
145 Views
Last Modified: 2011-08-18
I can't control the properties of the TabStrip in VB5 such like add new tab, change tab name.
0
Comment
Question by:cheechew
  • 2
  • 2
4 Comments
 
LVL 1

Author Comment

by:cheechew
ID: 1465278
Edited text of question
0
 
LVL 2

Accepted Solution

by:
swilt earned 50 total points
ID: 1465279
Try this

Option Explicit

Private Sub Form_Load()
    Dim i As Integer

    TabStrip1.Tabs.Clear
    For i = 1 To 10
        TabStrip1.Tabs.Add
        TabStrip1.Tabs(TabStrip1.Tabs.Count).Caption = "Number " & TabStrip1.Tabs.Count
    Next i
End Sub
   
0
 
LVL 1

Author Comment

by:cheechew
ID: 1465280
Why the properties windows can't control the TabStrip?
0
 
LVL 2

Expert Comment

by:swilt
ID: 1465281
You can add new tabs by clicking on custom in the property window then Tabs - Insert Tab
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

776 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