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.

Control docking panel

Thread ID:

Created:

Updated:

Platform:

Replies:

77889 Nov 20,2008 02:15 AM Nov 21,2008 01:14 AM Windows Forms 1
loading
Tags: Tools
Hyung-Jin Lee
Asked On November 20, 2008 02:15 AM

Hello.
I add a panel and dockingMgr in the form1.
I want the panel to hide left side, and
some event is raise, the panel is showed.
So how can I control docking panel without caption buttons.
Please, give me an advice.
Thank you.




Hemaladha K [Syncfusion]
Replied On November 21, 2008 01:14 AM

Hi Chin,

Thank you for your interest in Syncfusion Products.

To display the panel to AutoHide mode when the form is loaded we need to call SetAutoHideMode() method in NewDockStateEndLoad event. Please refer to the below code snippets given:

[C#]


private void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e)
{
this.dockingManager1.SetAutoHideMode(this.panel1, true);
}

private void button1_Click(object sender, EventArgs e)
{
if (this.dockingManager1.GetAutoHideMode(this.panel1))
this.dockingManager1.SetAutoHideMode(this.panel1, false);
else
this.dockingManager1.SetAutoHideMode(this.panel1, true);
}



Please refer to the below sample that demonstrates the same.
http://websamples.syncfusion.com/samples/F77889/main.htm

Please let me know if this helps you.

Regards,
Hema


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.

;