|
-
Feb 7th, 2001, 01:07 PM
#1
Thread Starter
Hyperactive Member
How do I use the ssTab. When I place controls on the first tab and then click on the second tab, the controls are still showing. Do I have to program that they are invisible as I move from tab to tab.
I thought there was a setting that would automatically do this for me.
I appreciate your help.
Thanks
Mike
-
Feb 7th, 2001, 01:15 PM
#2
Lively Member
No Need to write any program
There is no need to write any program to make them invisible.By default when the tabs changes the controls also change accordingly,as what controls you selected in each tab.
You should take "Microsoft Tabbed Dialog Control 6 " from the project-->Components
Check it once again and tell the status
-
Feb 7th, 2001, 01:23 PM
#3
Hyperactive Member
I had the same problem. Here is your solution:
1) Create a Frame for each tab you have on the Tab control.
2) Select the Frame you want to work with and use CTRL-J to bring it to the front. Then insert the controls INTO the frame. (Make sure the frame is selected or your controls will be on every tab)
3) Use the following code in the Form_Load section of the form containing the ssTab control (this is for 8 tabs):
For i = 1 To 8
Frame1(i).Visible = False
Next i
Frame1(3).Visible = True
<-- Substitute the number 3 for the Tab number you wish to appear first. -->
Hope it helps!
...later
"If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"
-
Feb 7th, 2001, 01:41 PM
#4
Thread Starter
Hyperactive Member
Weird
Wow this is weird. I would think that it would be something that is in the tab control to hide the other controls it contains.
However I do not see this happening. For example, when I set the tab.visible = false, I still see the controls that it contains. So I do have to program them off.
It's weird that truely the tab control does not contain the controls I thought I put on it.
Mike
-
Feb 7th, 2001, 01:51 PM
#5
Hyperactive Member
I am not sure what version of VB you use...i use VB 5 pro SP3 and I have always had to use either a picture box or a frame (frame is better because of less overhead) and put the controls inside of that and then reference the picturebox or frame to the tab and use the Visible attribute.
If the controls are still showing up everywhere that means you dont have them INSIDE the frame. They may look like they are in the frame, but they may be laying on top of the frame. Try selecting all the controls on the page and do a 'Cut'.....then select the frame you want them in and do a paste. This will insure that they are contained within the frame. You DO NOT have to program the controls off.....once you get them INSIDE the frame...they will disappear when you set the frame's Visible attribute to False.
I also had trouble dragging controls onto selected frames and picture boxes so I ended up cutting and pasting. Once you get it to work you will be amazed at how easy it really is. Took me 6 hours to figure it out the first time....but now it is a breeze....just keep using my existing code.
"If I had known it was going to be that kinda party, I would have stuck my disk in the mash potatos!"
-
Feb 7th, 2001, 01:53 PM
#6
make sure...
the ssTab is like a frame...(a container)
make sure you are drawing the control in the tab...
not just dragging it on to the tab
if you dbl click to add the control it will not "land" in the tab

Any control that is a container:
you can't drag a control onto it...you must Draw the control in it or paste it in
Last edited by Static; Feb 7th, 2001 at 01:57 PM.
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|