I have a transparent tab control containing several controls. It appears that the tab control has a padding (or margin) set so to 75. I would like to set it to 0. How do I do that?
I am guessing here. But if you are trying to color the tab pages with a colored label behind the page, this will take a label located anywhere on the form and size it perfect behind the tab control.
Code:
Private Sub Form_Load()
Dim i As Integer
Dim lblWidth As Long
Dim tempLeft As Long
'Need a lblHilite on the form somewhere
Me.tbCtrl1.Style = 0
Me.tbCtrl1.BackStyle = 0
'Format lblhilite
With Me.lblHilite
.Width = Me.tbCtrl1.Width
.Height = Me.tbCtrl1.Height
.Top = Me.tbCtrl1.Top + 15
.Left = Me.tbCtrl1.Left
.Caption = ""
.BackColor = vbRed
End With
End Sub
when the page changes just change the color of the label.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.