Solved

SStab and making a tab number active

Posted on 1998-09-24
5
148 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
ID: 1436481
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
ID: 1436482
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
ID: 1436483
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
ID: 1436484
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
ID: 1436485
Thanx for the points!

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to open Waze.com/livemap from address saved in DB? 26 178
Help in WHSCRIPT 9 47
fso.FolderExists("\\server\HiddenFolder$") 4 52
Excel Automation VBA 19 38
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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 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…

867 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

23 Experts available now in Live!

Get 1:1 Help Now