Solved

SStab and making a tab number active

Posted on 1998-09-24
5
147 Views
Last Modified: 2010-04-30
I have the following situation, I created a form with
the SSTab Control with 3 tabs. I want tab 1 to be the first
one two be displayed when the form loads. I wrote
form1.SSTab1.tab = 1 on the form Load event. But if at
design time, the form is a different tab than 1 the tabs behave abnormaly, sometimes the text boxes on a tab
do not show and the tab loaded is not 1 but the one
that was active a design time.
0
Comment
Question by:cami
5 Comments
 
LVL 2

Expert Comment

by:dabellei
Comment Utility
I've test it again and if you put sstab1.tab=1 in the form.load the tab #1 will show  maybe there's something other code that creating the problem.  Try a doevents after sstab1.tab=1.  Try to put a stop in your code after sstab1.tab=1  and verify if the tab is ok and then run the program with F8 to see if it;s changing tab somewhere else after the form.load event, the problem might be in other procedure or call.  

If it still doing the same thing send me your code i;ll check it

progiclip@netc.net
0
 
LVL 12

Expert Comment

by:mark2150
Comment Utility
There is *NOT* a problem with your code. This is a confirmed *BUG* with the SSTAB control.  It defaults to the tab that was active when the project was compiled no matter *WHAT* you attempt to set the tab to.

There is a fairly long and complex discussion of this issue on the MSDN, but the bottom line is that the SSTab control is *BUGGY* at this point.

M

0
 
LVL 1

Expert Comment

by:jforbes
Comment Utility
I have fount that if you set the tab in design time to the one you want a default, and then use a frame around text boxes, pictures and so forth, then theproblem seems to be "Worked Around".

-John
0
 

Author Comment

by:cami
Comment Utility
Mark2150 seems to have given the answer to the problem in a
comment he/she added.
0
 
LVL 12

Accepted Solution

by:
mark2150 earned 10 total points
Comment Utility
Thanx for the points!

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now