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.
Unfortunately, activation email could not send to your email. Please try again.

DockingManager Question

Thread ID:

Created:

Updated:

Platform:

Replies:

43593 Apr 26,2006 04:01 PM Apr 28,2006 12:30 AM Windows Forms 3
loading
Tags: Tools
Nick Howard
Asked On April 26, 2006 04:01 PM

Hello, I have a number of forms that have properties of various things. I am currently using the docking manager to display them using the code below: this.AddOwnedForm(propertiesForm); propertiesForm.Show(); propertiesFormTopLevel=true; this.dkmMain.SetEnableDocking(propertiesForm,true); this.dkmMain.SetDockLabel(propertiesForm, "Properties"); this.dkmMain.SetDockVisibility(propertiesForm,true); When I add a new form it is displayed to the side of the first form. How can I add it so that it adds a tab at the bottom (or top) of the docking manager? I hope that makes sense. Thanks for your help. Thanks, Nick

Joy K George [Syncfusion]
Replied On April 27, 2006 12:12 AM

Hi Nick, Syncfusion DockingManager has a method called DockControl.You could use this method to dock a control as tabbed to another control. //Code snippet this.AddOwnedForm(propertiesForm); propertiesForm.Show(); propertiesForm.TopLevel=true; dm.DockControl(propertiesForm,panel1,DockingStyle.Tabbed,100); //panel1 is the parent control this.dm.SetDockLabel(propertiesForm,"Properties"); I have prepared a sample to meet your requirement.Please go through that and let me know whether I fulfilled your requirement. Also please refer this knowledge base article for more details. Thanks for your interest in Syncfusion. Regards, Joy

sample31.zip

Nick Howard
Replied On April 27, 2006 05:19 PM

Hi Joy, Thank you for your help. One other quick question. Is there any way to put the tabs on the left instead of at the bottom? Thanks, Nick >Hi Nick, > >Syncfusion DockingManager has a method called DockControl.You could use this method to dock a control as tabbed to another control. >//Code snippet > >this.AddOwnedForm(propertiesForm); >propertiesForm.Show(); >propertiesForm.TopLevel=true; >dm.DockControl(propertiesForm,panel1,DockingStyle.Tabbed,100); //panel1 is the parent control >this.dm.SetDockLabel(propertiesForm,"Properties"); > >I have prepared a sample to meet your requirement.Please go through that and let me know whether I fulfilled your requirement. > >Also please refer this knowledge base article for more details. > >Thanks for your interest in Syncfusion. >Regards, >Joy

sample31.zip

Joy K George [Syncfusion]
Replied On April 28, 2006 12:30 AM

Hi Nick, DockingManager allows you to arrange the tabs at left side by seting the property DockTabAllignment. Please go through the below code snippet. dockingManager1.DockTabAlignment=DockTabAlignmentStyle.Left; Also refer this knowledge base article for more details Please let me know, if you have any more queries. Regards, Joy

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.

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.

;