Link to home
Start Free TrialLog in
Avatar of kar8942
kar8942

asked on

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
Avatar of edwardiii
edwardiii

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.
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
are you using any subclassing routines within your code?
Avatar of kar8942

ASKER

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
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.
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
Avatar of kar8942

ASKER

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.
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.
Avatar of kar8942

ASKER

My SSTab's TabHeight Property is set to 295.
ASKER CERTIFIED SOLUTION
Avatar of edwardiii
edwardiii

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kar8942

ASKER

edwardiii,

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

Kind Regards,
Scott
Glad it worked:)
Thanx!

works for me too!!