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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DockTabControl: how to change thegradient background?

Thread ID:

Created:

Updated:

Platform:

Replies:

61728 May 31,2007 03:22 PM UTC Jun 1,2007 09:42 PM UTC WinForms 3
loading
Tags: Tools
Faulhaber
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?

Regards,
Christian

dockman.zip

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.

[C#]

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

docktab.TabPanelBackColor = Color.DarkBlue;


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

http://websamples.syncfusion.com/samples/Tools.Windows/F61728/main.htm



Faulhaber
Replied On June 1, 2007 02:10 PM UTC

Hi,

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?

Regards
Christian

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.

Regards,
Rajesh C

CONFIRMATION

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.

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

;