Solved

Setting captions for SSTab in run-time

Posted on 2000-05-02
3
220 Views
Last Modified: 2010-05-02
I have a form with a SSTab control (SSTab1), with two tabs. I wonder how to set the captions for the two tabs in run-time. Something like:

  SSTab1.Tab(0).Caption = "Hello"
  SSTab1.Tab(1).Caption = "Goodbye"

But this doesn't work...
0
Comment
Question by:liljegren
3 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 2770220
try this:

sstab1.tab = 0
sstab1.caption = "Hello"
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 2770242
Use this:
SSTab1.TabCaption(1) = "Hello"
0
 

Author Comment

by:liljegren
ID: 2770550
Wonderful. Thanks!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

747 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

12 Experts available now in Live!

Get 1:1 Help Now