SS Tab Caption
Posted on 1997-12-25
I'm using VB 4 and on my form I have an SS tab with 6 tabs. I've set all the caption titles of the tabs to be the colour black however I want to make it so that when I run my program and click on one of the tabs it changes colour. For exmaple, lets says my tab titles are: tab1, tab2, tab3....etc and they're all black, however if i clicked on the tab titled tab2 the colour of the caption should change from black to red and then when I click on tab3, tab2 should change back to black and the caption of tab3 should become red and so on.
This is the code I have come up with:
Private Sub SSTab1_Click
SSTab1.ForeColor = &HFF&
However that changes ALL the tab labels to red where as I only want the active tab to have a red caption. Can anyone help?