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.

Sizing of docked control on load is not working

Thread ID:

Created:

Updated:

Platform:

Replies:

74615 Jun 23,2008 04:07 AM Jul 1,2008 12:29 AM Windows Forms 3
loading
Tags: Tools
Ranjith Kumar Srinivasan
Asked On June 23, 2008 04:07 AM

Hi,
I am trying to set the size of a docked control on load of a form using SetControlSize(Control, Size) but this method is working if i call thru some context menu in my application after loading.

i also found that to auto hide the control on load we have to use SetAutoHideOnLoad(Control, bool) rather than SetAutoHideMode(Control, bool). But there is now such method or setting the size on load.

Also i have attached an test application which explain this issue practically.
In this sample i have the below code in OnLoad
dockMgr.SetControlSize(leftPanel, new Size(500, 450));
but this is not taking the given size

How do i set the size of a docked control on Load of an applicaton.

Thanks and Regards,
Ranjith



SyncDocking_d37ee215.zip

Administrator [Syncfusion]
Replied On June 25, 2008 08:30 AM

Hi Ranjith,

Thank you for using Syncfusion products.

To set the size of docked control on load of an application

This can be achieved by setting size of docked control in dockingManager1_NewDockStateEndLoad event. Please refer the below code snippet and let me know if this helps you.

[C#]

private void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e)
{
this.dockingManager1.SetControlSize(this.panel1, new Size(300, 300));

}

Regards,
Jaya



Ranjith Kumar Srinivasan
Replied On June 25, 2008 10:32 PM

Hi Jaya,
Thanks for your support, Now its working fine.

Thanks and Regards,
Ranjith


>Hi Ranjith,

Thank you for using Syncfusion products.

To set the size of docked control on load of an application

This can be achieved by setting size of docked control in dockingManager1_NewDockStateEndLoad event. Please refer the below code snippet and let me know if this helps you.

[C#]

private void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e)
{
this.dockingManager1.SetControlSize(this.panel1, new Size(300, 300));

}

Regards,
Jaya





Administrator [Syncfusion]
Replied On July 1, 2008 12:29 AM

Hi Ranjith,

Thanks for the update. Please let me know if you have any further issues.

Regards,
Jaya


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.

;