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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DockTabControl: how to change thegradient background?

Thread ID:





61728 May 31,2007 03:22 PM UTC Jun 1,2007 09:42 PM UTC WinForms 3
Tags: Tools
Asked On May 31, 2007 03:22 PM UTC

How can i change the backcolors of the DockTabControl? I get one color of the gradient changed (in the Office2003Colors object), see attached image (the light blue).
But the second color is always white, how can i change it that it's dark blue like in the caption?



Poly J [Syncfusion]
Replied On June 1, 2007 12:37 PM UTC

Hi Christian,

Thanks for your interest in Syncfusion products.

There is no straight forward method or property available to set the Back color of the DockTabcontrol in DockingManger. But you can set the back Color by getting the DockTabControl object from DockHostController.


Syncfusion.Windows.Forms.Tools.DockHost dhost = this.panel1.Parent as Syncfusion.Windows.Forms.Tools.DockHost;
Syncfusion.Windows.Forms.Tools.DockHostController dhc = dhost.InternalController as
if (dhc.ParentController is Syncfusion.Windows.Forms.Tools.DockTabController)
Syncfusion.Windows.Forms.Tools.DockTabControl docktab = (dhc.ParentController as

docktab.TabPanelBackColor = Color.DarkBlue;

Please refer to the attached sample and let me know if this is helpful for you.


Replied On June 1, 2007 02:10 PM UTC


i still use this code. But this affects only the second color. Pressing the button in your sample changes only the grey to blue, the other color of this gradient is still white. How can i change the white color?


Rajesh C [Syncfusion]
Replied On June 1, 2007 09:42 PM UTC

Hi Christian,

With the current architecture, We could not change the gradient BackColor to DockTabControl. We will create a feature request "Ability to set the Gradient BackColor to DockTabControl in DockingManager" and intimate to our development team in this regard. Please let me know if you have any other questions.

Thanks for your patience.

Rajesh C


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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