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
close icon

Docking Controls on TabControlAdv

Hi.

Is there a way to enable docking of controls inserted into TabPages with a docking manager?

Thanks in advance.


1 Reply

SS Sri Subhashini M Syncfusion Team November 14, 2007 01:40 PM UTC

Hi,

Thank you for your interest in Syncfusion products.

I was able to view the condition you have described here. This is directed not possible.

To workaround this issue we have to add the controls and docking manager inside the UserControl. Then enable the docking manager for the controls and place the UserControl inside the TabPages.
By doing this we can enable the docking for TabPage`s controls.

private void UserControl1_Load(object sender, EventArgs e)
{
this.dockingManager1.SetEnableDocking(this.panel1, true);
this.dockingManager1.SetEnableDocking(this.panel2, true);
}


UserControl1 usercontrol1Obj = new UserControl1();

Size userControlSize1 = new Size(this.tabPageAdv1.Size.Width, this.tabPageAdv1.Size.Height);
usercontrol1Obj.Size = userControlSize1;

this.tabPageAdv1.Controls.Add(usercontrol1Obj);

Please take a look at the sample and let me know if it helps.
http://websamples.syncfusion.com/samples/Tools.Windows/69824/main.htm

Regards,
Suba


Loader.
Live Chat Icon For mobile
Up arrow icon