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

Docking Tabbed

Hi,

I am using the following code snippet to dock a child form into parent, such that they appear tabbed.
dockingManager.DockControl(child, parent, DockingStyle.Tabbed, 100);

The new tab appears fine, however the tab part of child control always appears to the left of the parent.

child|parent

Is it possible to get the new tab(s) to appear at the end.
parent|child

The idea being that all new controls are docked within the parent but new controls get added to the end, rather than the start.

parent|child0|child1|child2

Regards
ViN.

1 Reply

AD Administrator Syncfusion Team July 13, 2007 05:50 AM UTC

Hi ViN,

You could change the DockTabPostion by using the SetTabPosition method in the Docking Manager. Please refer this code snippet:

this.dockingManager1.SetTabPosition(this.panel1,this.listBox1.SelectedIndex);


Please refer the sample in the below link which illustrates the above:
http://websamples.syncfusion.com/samples/Tools.Windows/F63786/main.htm

Thank you for using Syncfusion Products.

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.

Loader.
Live Chat Icon For mobile
Up arrow icon