-
question the first:
How do I get a label to show up in a tab strip? I've tried to use the 'Bring to Front' option on the popup menu, but it still doesn't show up, I can get other thing to show up that way but not labels. Thoughts??
#2
how do you get the controls you see to change when you click on a diffrent tab?
thanks
-
Q #1:
Labels are [Lightweight Controls]*, and therefore cannot be placed on top of a Heavyweight:) control. You need to hold it inside a frame and then it will go over.
Q #2:
Tabstrips are not [Containers]**, which means it could not manage controls and hold them, so...
Code:
'You first need 2 Frames and a Tabstrip in their origional names:
Private Sub TabStrip1_Click()
If TabStrip1.SelectedItem.Index = 1 Then
Frame1.Visible = True
Frame1.Visible = False
Else
Frame1.Visible = False
Frame2.Visible = True
End If
End Sub
You can also use the SSTab control.
__________________
Lightweight Controls: Controls that are windowless (without a handle: hWnd). These controls does not have messaging capablities.
Container: A control that acts as a parent of another control/controls.
-
cool
where do i find the sstab control?
-
It should have came with VB6 Lrn, Pro, or Ent. It is under the name "Microsoft Tabbed Dialog Control 6.0". I'm not sure if it's in 5.0, and if not, I will gladly provide you with the control.
-
Yes, the sstab comes with VB5 and later.
Its a true container and much more useful than the tabstrip.