We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set ActiveTabBackColor, InactiveTabBackColor and default TabBackColor in WinForms TabControlAdv?

Platform: WinForms |
Control: TabControlAdv |
Published Date: November 20, 2014 |
Last Revised Date: February 3, 2020

Active and inactive tab color settings

The Active and Inactive Tab fore color can be handled using the SelectedIndexChanged event. Using this event you can set the text color in TabControlAdv.


this.tabControlAdv1.SelectedIndexChanged += new EventHandler(tabControlAdv1_SelectedIndexChanged);
void tabControlAdv1_SelectedIndexChanged(object sender, EventArgs e)
    foreach (TabPageAdv item in this.tabControlAdv1.TabPages)
        if (this.tabControlAdv1.SelectedTab == item)
            item.TabForeColor = Color.Black;
            item.TabForeColor = Color.Green;


AddHandler tabControlAdv1.SelectedIndexChanged, AddressOf tabControlAdv1_SelectedIndexChanged
Private Sub tabControlAdv1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
    For Each item As TabPageAdv In Me.tabControlAdv1.TabPages
        If Me.tabControlAdv1.SelectedTab Is item Then
            item.TabForeColor = Color.Black
            item.TabForeColor = Color.Green
        End If
    Next item
End Sub

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/TabPageAdvForeColor-836713577-2077183426.zip

Reference link:

1. https://help.syncfusion.com/windowsforms/tabcontrol/events#selectedindexchanged-event

2. https://help.syncfusion.com/windowsforms/tabcontrol/appearance-settings

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile