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

DockingManager: Custom CaptionBackground PER Caption

Thread ID:





69213 Oct 18,2007 05:30 PM UTC Oct 22,2007 11:15 PM UTC WinForms 1
Tags: Tools
Asked On October 18, 2007 05:30 PM UTC

Dockingmanager1.InactiveCaptionBackground can be globally set for all docked controls.

Is it possible to set a specific control's docking area's background ?

Something like dockingManger1.SetCaptionBackground(control)?

Also, is setting custom floating captions coming any time soon?

J.Nagarajan [Syncfusion]
Replied On October 22, 2007 11:15 PM UTC

Hi ERobishaw ,

Thanks for your interest in Syncfusion products.

You can set caption background color for particular control . You have to handle ProvideGraphicsItems event. Please use the following code snippet.


private void dockingManager1_ProvideGraphicsItems(object sender, Syncfusion.Windows.Forms.Tools.ProvideGraphicsItemsEventArgs arg)
if(arg.Control is Panel)
arg.CaptionBackground = Brushes.YellowGreen;
if (arg.Control is RichTextBox)
arg.CaptionBackground = Brushes.Red;

When the control is in floating state the dockhost control will be hosted in a floating form and the floating form caption will be same like the owner form of the floating form. Present architecture of docking manager is not supporting customization of floating form caption.

Please let me know if this helps you.



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

or the page will be automatically redirected to 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