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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Controlling TabStyle under DockingManager

Thread ID:





11457 Mar 5,2004 09:03 PM UTC Apr 14,2004 10:00 AM UTC WinForms 7
Tags: Tools
Jay Cincotta
Asked On March 5, 2004 09:03 PM UTC

I would like to use a DockingManager within an MDIClient form to allow the user to customize the layout of controls on that form similar to the WindowFill demo (i.e., no floating windows, but flexible docking, pinning and tabbed groups. I would also like to use the OneNoteStyle tab renderer. Now I know I can assign that object to the TabStyle property of a TabControlAdv. However, I don''t see how to get to the tab control owned by the DockingManager. This is a TabControlAdv, I hope? Thanks, Jay Cincotta

Administrator [Syncfusion]
Replied On March 8, 2004 11:21 PM UTC

Hi Jay, The DockTabControl is derived from the TabControlAdv control and hence the tabs can be displayed in OneNoteRenderer TabStyle. You could do this as shown in the code below : Syncfusion.Windows.Forms.Tools.DockHost dhost = this.panel3.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.TabStyle = typeof( Syncfusion.Windows.Forms.Tools.OneNoteStyleRenderer); } Please refer to the sample attached which illustrates the same. Let me know if you need further assistance. Regards, Guru Patwal Syncfusion, Inc.

Replied On April 11, 2004 11:53 AM UTC

Hi Guru, I have been evaluating your tools and require more flexibility in formating docking windows tabs. After reading your post above I have implemented the following code in VB.Net: ''Setup custom tabs for docking windows Dim dhost As Syncfusion.Windows.Forms.Tools.DockHost dhost = Me.pnlParents.Parent Dim dhc As Syncfusion.Windows.Forms.Tools.DockHostController dhc = dhost.InternalController Dim dtc As Syncfusion.Windows.Forms.Tools.DockTabController dtc = dhc.ParentController Dim docktab As Syncfusion.Windows.Forms.Tools.DockTabControl docktab = dtc.TabControl Dim dts As Syncfusion.Windows.Forms.Tools.OneNoteStyleRenderer docktab.TabStyle = dts '' End code However I receive the following error: ''Syncfusion.Windows.Forms.Tools.OneNoteStyleRenderer'' cannot be converted to ''System.Type''. Please excuse my ignorance if I should know how to deal with this issue but I''m new to the .Net world! Best regards, Scott Parkin

Administrator [Syncfusion]
Replied On April 12, 2004 09:30 AM UTC

Hi Scott, The OneNoteStyleRender TabStyle value is available in our v2.0 releases only. So if you are using the earlier versions of Essential Suite you will not be able to use this. Please let me know the version of Essential Suite that you are using. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Replied On April 13, 2004 04:31 AM UTC

Hi Guru, Thanks for the reply. I''m actually using your evaluation version of Essential Tools Should this version have that attribute included? Best regards, Scott.

Administrator [Syncfusion]
Replied On April 13, 2004 10:33 AM UTC

Hi Scott, OneNoteStyleRender TabStyle feature should be available in v2.0.4.0 eval version. I have attached a VB.Net_version of my earlier sample here. Please try this on your system and let me know how if you need further assistance. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Replied On April 14, 2004 06:22 AM UTC

Hi Guru, Thanks for the sample. I had a syntax error in my VB code. Yours worked a treat. My compliments on your support. Best regards, Scott.

Administrator [Syncfusion]
Replied On April 14, 2004 10:00 AM UTC

Hi Scott, Thanks for the update. We are glad that this problem is resolved. Please let me know if you need any other information. Thanks for considering Syncfusion products. Regards, Guru Patwal Syncfusion,Inc.


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

Live Chat Icon For mobile
Live Chat Icon