[RESOLVED] Me.Caption and SSTab / Case
I am on another project now. This is what I am looking to do:
I am using SSTab that has TWO tabs. One is 0 and the other is 1.
When you click on the SSTab where the current tab is 0 I would like to place in Me.Caption
"English - Irish Gaelic Tranlator."
When you click on the other tab (1)
Then to display in the Me.Caption
"Béarla - Gaeilge aistritheoir"
Please advise.
Re: Me.Caption and SSTab / Case
VB Code:
Private Sub SSTab1_Click(PreviousTab As Integer)
Select Case SSTab1.Tab
Case 0
Me.Caption = "English - Irish Gaelic Translator."
Case 1
Me.Caption = "Béarla - Gaeilge aistritheoir"
End Select
End Sub
Just make sure you have the correct caption from start as well.
Re: Me.Caption and SSTab / Case
You can use the SSTab's Click Event, have a look at the link below:
http://msdn.microsoft.com/library/de...clickmstab.asp
That event has one perameter, that indicated the index of which tab was just clicked :)
VB Code:
Private Sub ObjectName_Click(PreviousTab As Integer)
Select Case ObjectName.Tab
Case 0
Me.Caption = "English - Irish Gaelic Translator."
Case 1
Me.Caption = "Béarla - Gaeilge aistritheoir"
End Select
End Sub
Edit: Joacim Andersson Beat me too it :)
Hope that helps,
RyanJ
Re: Me.Caption and SSTab / Case
Quote:
Originally Posted by sciguyryan
You can use the SSTab's Click Event, have a look at the link below:
http://msdn.microsoft.com/library/de...clickmstab.asp
That event has one perameter, that indicated the index of which tab was just clicked :)
VB Code:
Private Sub ObjectName_Click(PreviousTab As Integer)
Select Case ObjectName.Tab
Case 0
Me.Caption = "English - Irish Gaelic Translator."
Case 1
Me.Caption = "Béarla - Gaeilge aistritheoir"
End Select
End Sub
Edit: Joacim Andersson Beat me too it :)
Hope that helps,
RyanJ
I thought it would have been something like it. When I was trying it for myself, was totally messing up on the syntax haha. Thanks guys.