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

Docking Controls on TabControlAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

69824 Nov 13,2007 09:08 PM UTC Nov 14,2007 01:40 PM UTC WinForms 1
loading
Tags: Tools
Ariel Saleh
Asked On November 13, 2007 09:08 PM UTC

Hi.

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

Thanks in advance.


Sri Subhashini M [Syncfusion]
Replied On 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


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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;