Results 1 to 1 of 1

Thread: Hide TabControl Navigation Arrows

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2012
    Posts
    321

    Question Hide TabControl Navigation Arrows

    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
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width