• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 892
  • Last Modified:

SSTab Control Problem with VB6

Hello,

When I opened a VB 6 project today I started having problems with the SSTab control. It has basically disappeared from the forms I place it on. When I select the SSTab control from the toolbox and try to place it on my form it is invisible, all I can see is the little blue squares that are used to adjust the size of the control. All other controls seem to work fine.  Any ideas what would cause this and how I can fix it? Thanks for the help

Scott
0
kar8942
Asked:
kar8942
  • 5
  • 4
  • 2
  • +2
1 Solution
 
edwardiiiCommented:
Hi, kar8942.

Are there any Frames near where you're placing the SSTab control?  Sometimes controls can disappear into frames. If no Frames are on the form, does the SSTab control respond to Property changes of Height and Width(after you click on the resizing squares)? If you open a new VB project and drag an SSTab control onto a fresh form, does the problem persist? Hopefully your C:\WINNT\system32\TABCTL32.OCX isn't corrupted.
0
 
Shiju SasidharanCommented:
hi
Make sure that all ur frames are visible in ur form.
Take the form u r using , take Property window (Press F4)
and in that check ur SSTab Control is listed. if its name is listed there then select it and change its
Left and Top values both to Zero, so that it can be more visible.
if its name is NOT in Property window (i hope u r not deleted the SSTab unkowingly)

as edwardiii  asked ,
Have u tried by placing another SSTab control ? any problems then ?

;-)
Shiju
0
 
mugman21Commented:
are you using any subclassing routines within your code?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
kar8942Author Commented:
There are no frames on the form and when I start a new project the SSTab control still does the same thing.  I'm not using any subclassing routines. The controls that are on the first tab can be seen, but the controls that were on the other tabs cannot be accessed.  But the controls that I can't see on the other tabs are accessible from the properties window.  I hope what I wrote makes sense.  It's hard to explain.  

Scott
0
 
edwardiiiCommented:
Hi, kar8942.

I'm not clear what you mean by "The controls that are on the first tab can be seen, but the controls that were on the other tabs cannot be accessed"? Are you talking about not seeing controls you've embedded in SSTab controls?  Or in the sentence I quoted, did you mean "form" instead of "tab", as in you have multiple forms in your project? If you're talking about not being able to see controls you've dropped into your SSTab, we need to know that, as your original problem statement seems to indicate a slightly different issue.

In addition, if you start a new project, add a form, and add nothing more than an SSTab to it, you're saying you can't see that SSTab in the Properties window?  And you can't grab the "little blue squares" and resize it manually?  If that's true, you may have a corrupted TABCTL32.OCX.  If that's the case, do a reinstall.
0
 
mugman21Commented:
kar8942,

Unregister and re-register the control and that should clear up the problem. I'm guessing serveral of the CLSID's in the registry got currupted or deleted.

Do this:

1. Go to your start menu, and click on 'Run'
2. In the Run dialog that pops up, type "regsvr32 /u c:\windows\system32\tabctl32.ocx"
3. Then re-register the control by typing that above command, but omit the "/u" parameter.

(if your using windows 2000, change the path for the regsvr32 utility to c:\winnt\system32\tabctl32.ocx)

Restart your VB project and all should be well.

Mugman
0
 
kar8942Author Commented:
I tried to unregister the control and re-register it, but that did not work.
Let me restate what my problem is: I have a project I've been working on for a while. There is 1 form in this project that has an SSTab control. The SSTab control has 3 tabs with controls on each tab (textboxes, buttons, etc.).  Since my problem happened I can still see the controls I put on the first tab even though the actual SSTab control cannot be seen (this sounds confusing). I can resize the SSTab manually using the blue squares. The squares are the only part of the control that can be seen. I haven't tried re-installing VB yet, I would like to hold off on doing that. Thanks for all the help.
0
 
edwardiiiCommented:
I wonder...what is your SSTab's TabHeight property set to?  If I set mine to "10", it hide the top tabs, and only lets me see the controls in the default tab.
0
 
kar8942Author Commented:
My SSTab's TabHeight Property is set to 295.
0
 
edwardiiiCommented:
Don't know where I was going with that anyway...you've stated you can start a brand new project and drop an SSTab onto a new form and the behavior you describe occurs.  I can't think what it could be other than a corrupted TABCTL32.OCX file.  Per the following site, try downloading the TABCTL32.OCX file and registering manually:

http://www.ascentive.com/support/new/support_dll.phtml?dllname=TABCTL32.OCX

Near the top of this page is a section that begins with "Alternatively..."  Try downloading/registering this OCX per the instructions, and see if that clears up your SSTab issue.
0
 
kar8942Author Commented:
edwardiii,

Thanks for the help!
That did it.
Thanks also to everyone else for your input.

Kind Regards,
Scott
0
 
edwardiiiCommented:
Glad it worked:)
0
 
zxzx73Commented:
Thanx!

works for me too!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 4
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now