|
-
Feb 27th, 2001, 04:34 PM
#1
Thread Starter
New Member
how do you set up a tabstrip?
-
Feb 27th, 2001, 04:39 PM
#2
Why part are you having trouble on?
-
Feb 27th, 2001, 04:42 PM
#3
Thread Starter
New Member
i know this is going to sound dumb but i've never had a need for a tabstrip before,
how do you set a seperate action/event/function for each tab?
-
Feb 27th, 2001, 04:49 PM
#4
Use the SelectedItem property to check the selected tab.
Code:
Private Sub TabStrip1_Click()
Print TabStrip1.SelectedItem.Index
End Sub
-
Feb 27th, 2001, 04:57 PM
#5
_______
<?>
Code:
Private Sub SSTab1_Click(PreviousTab As Integer)
Select Case PreviousTab
Case 0
MsgBox "tab0"
Case 1
MsgBox "tab1"
Case 2
MsgBox "tab2"
End Select
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Feb 27th, 2001, 04:57 PM
#6
Thread Starter
New Member
interesting, I get the tab number printing on the side of the form.
Thanks for your reply,
how do I put another control (a text box) to say tab 2?
-
Feb 27th, 2001, 05:03 PM
#7
Code:
Private Sub TabStrip1_Click()
If TabStrip1.SelectedItem.Index = 1 Then
Text1.Visible = True
Else
Text1.Visible = False
End If
End Sub
-
Feb 27th, 2001, 05:05 PM
#8
Thread Starter
New Member
this
Private Sub SSTab1_Click(PreviousTab As Integer)
Select Case PreviousTab
Case 0
MsgBox "tab0"
Case 1
MsgBox "tab1"
Case 2
MsgBox "tab2"
End Select
gave me an error saying
procedure declaration does not match description of event or procdure having the same name
thanks for your post
-
Feb 27th, 2001, 05:09 PM
#9
Thread Starter
New Member
Thanks Megatron
If TabStrip1.SelectedItem.Index = 1 Then
Text1.Visible = True
Else
Text1.Visible = False
End If
this is exactly what i was looking for
-
Feb 27th, 2001, 05:36 PM
#10
_______
<?>
That's cause I used SSTabControl and not the Windows Tab Control...
Sorry...
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
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
|