Solved

SStab and making a tab number active

Posted on 1998-09-24
5
154 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
[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
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…

739 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