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

Redrawing the title bar when using the docking manager

Thread ID:





56816 Feb 21,2007 12:23 PM UTC Mar 1,2007 11:43 PM UTC WinForms 4
Tags: GridControl
Edward Khoze
Asked On February 21, 2007 12:23 PM UTC

Hi guys

Is it possible to change the appearance of the topmost title bar when using the DockingManager, for example to draw a button on it or something. Something similar to maybe a ProvideGraphicsItems event, which we already override to change the color of this title bar.

Thanks in advance


Murugan [Syncfusion]
Replied On February 21, 2007 08:47 PM UTC

Hi Ed,

Thank you for using Syncfusion products.

By customizing DockingManager, DockHost and Captionpainter classes we could achieve this. Herewith I have attached the sample. Please refer the sample and let me know if it helps you.

Custom button draw

Murugan P.S

Edward Khoze
Replied On February 26, 2007 02:17 PM UTC

Hi Murugan

Thank you for your prompt reply. I'm currently faced with another couple of issues:

Is there any way to determine on which control you are painting on (in case i've got several controls attached to the DockingManager) inside the PaintCaption method, so I can draw on some, but not on others?

And another question: Also when using the DockingManager, is there any way, when the controls are on top of each other (tabbed), to actually make those tabs invisible?



Edward Khoze
Replied On March 1, 2007 09:05 AM UTC

Anyone? I really need the answers to those questions, cos this piece of work I'm doing now is quite urgent.



Murugan [Syncfusion]
Replied On March 1, 2007 11:43 PM UTC

Hi Ed,

We are really sorry for the delay in responding. In PaintCaption method using this.dhcOwner.HostControl.Controls[0] we could get the current painted control. To hide the tabs in Docking please refer to the following code snippet

private void dockingManager1_DockStateChanged(object sender, Syncfusion.Windows.Forms.Tools.DockStateChangeEventArgs arg)
foreach ( Control ctrl in arg.Controls )
if ( this.dockingManager1.IsTabbed( ctrl ) )
Syncfusion.Windows.Forms.Tools.DockHost dhost = ctrl.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.Visible = false;


and let me know if it helps you.

Murugan P.S


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