Hi,
I have a custom TabControl to hide the tab buttons so I can use my own and also no border around the control.
Regardless of this, my issue is that when there are too many tabs for the control's width, the navigation arrows appear.
Is there a way to overwrite this behaviour?
My code for hiding tabs and border is as follows:
Code:
Public Class CustomTabControl
Inherits TabControl
Private Const TCM_ADJUSTRECT As Integer = &H1328
Protected Overrides Sub WndProc(ByRef m As Message)
If m.Msg = TCM_ADJUSTRECT AndAlso Not DesignMode Then
m.Result = CType(1, IntPtr)
Return
End If
MyBase.WndProc(m)
End Sub
End Class
Thank you