Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6007941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:45:14+00:00 2026-05-23T01:45:14+00:00

I need some way to hide the headers of a TabControl (I’ll be switching

  • 0

I need some way to hide the headers of a TabControl (I’ll be switching the selected tab programatically). How can I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:45:15+00:00Added an answer on May 23, 2026 at 1:45 am

    Put the tabcontrol in a panel and fixate it so it hides the headers.
    Easiest is to do it in the code behind (or create a custom control that does this):

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim bordersize As Integer = 3 'could'nt find this on the control.
    
        Dim ControlSize As New Size(437, 303) ' the size you want for the tabcontrol
        Dim ControlLocation As New Point(10, 10) 'location
    
        Dim p As New Panel
        p.Size = ControlSize
        p.Location = ControlLocation
        Me.Controls.Add(p)
    
        Dim t As New TabControl
        t.Size = ControlSize
        p.Controls.Add(t)
    
    
    
        t.Left = -t.Padding.Y
        t.Top = -(t.ItemSize.Height + t.Padding.Y)
        p.Width = t.Width - t.Padding.X
        p.Height = t.Height - (t.ItemSize.Height + t.Padding.Y + bordersize)
        t.Anchor = AnchorStyles.Bottom Or AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Top
    
        AddHandler t.GotFocus, AddressOf ignoreFocus
    End Sub
    
    Private Sub ignoreFocus(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim t As TabControl = CType(sender, TabControl)
        If t.SelectedIndex > -1 Then t.TabPages(t.SelectedIndex).Focus()
    End Sub
    

    Now, if you resize the panel, the tabcontrol will follow and only show the tabpage-area.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I need some way to implement an undirected network ( I think this
I need to show/hide some divs depending on selected options. I'm using .change function.
I need some way to monitor a desktop application and restart it if it
I need some way of capturing the text between square brackets. So for example,
I'm using freemarker to generate a freemarker template. But I need some way to
I need some effective way to escape all special characters in string.For example, my
I need to find some way of displaying a drop-down menu that depending on
I need some feedback on what is the best way to do what I
I need to notify my application in some way whenever any file in the
So I need some help coming up with a way to find a Minimum

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.