Category / Section
How to set the default tab backcolor, active tab color and inactive tab color in WinForms TabControlAdv?
1 min read
Appearance
In TabcontrolAdv, the Active Tab’s backcolor, the default Tab’s backColor and the Inactive Tab’s backcolor can be changed. You can do so by choosing the colors for ActiveTabColor, TabBackColor, InActiveTabColor property.
Note:
Before using Default backcolor property, you need to disable the UseActiveTabColor property for needed tab pages.
C#
//Set the active tab backcolor this.tabControlAdv1.ActiveTabColor = Color.Pink; //Set the Inactive tab backcolor this.tabControlAdv1.InactiveTabColor = Color.LightBlue; //Set the Default tab backcolor this.tabControlAdv1.TabPages[0].UseActiveTabColor = false; this.tabControlAdv1.TabPages[0].TabBackColor = Color.Red;
VB
'Set the active tab backcolor Me.tabControlAdv1.ActiveTabColor = Color.Pink 'Set the Inactive tab backcolor Me.tabControlAdv1.InactiveTabColor = Color.LightBlue 'Set the Default tab backcolor Me.tabControlAdv1.TabPages(0).UseActiveTabColor = false Me.tabControlAdv1.TabPages(0).TabBackColor = Color.Red
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/Tabbackcolor561623976.zip
Reference link: https://help.syncfusion.com/windowsforms/tabcontrol/appearance-settings