I have a SStab control and when I am adding a label on it, it is not in front of the tab, it is always at the back even if I made the tab as "Send to back". How come? What is wrong with what I am doing?
Thanks a lot! :)
Printable View
I have a SStab control and when I am adding a label on it, it is not in front of the tab, it is always at the back even if I made the tab as "Send to back". How come? What is wrong with what I am doing?
Thanks a lot! :)
Try this:
It should work.Code:Private Sub AlignLabelTab()
SSTab.ZOrder 1
Label1.ZOrder 0
End Sub
Private Sub Form_Load()
AlignLabelTab
End Sub
or the proper way:
cut the label, and click on the ss tab and then click paste (I had the same problem)
the code that sc0rp gave makes it go on top of the sstab control, so when you change tabs, it will still be there