|
-
May 3rd, 2005, 04:48 PM
#1
Thread Starter
PowerPoster
[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.
Last edited by BrailleSchool; May 7th, 2005 at 01:46 AM.
-
May 3rd, 2005, 04:53 PM
#2
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.
-
May 3rd, 2005, 04:55 PM
#3
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
-
May 3rd, 2005, 04:57 PM
#4
Thread Starter
PowerPoster
Re: Me.Caption and SSTab / Case
 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.
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
|