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 control double click

Thread ID:





45039 Jun 9,2006 12:40 AM UTC Jul 12,2006 06:04 PM UTC WinForms 2
Tags: Tools
Raymond Gunawan
Asked On June 9, 2006 12:40 AM UTC

I like how you can double click on a floating control and the control is docked. How can I emulate that programmatically? Thanks. Raymond.

Joy K George [Syncfusion]
Replied On June 9, 2006 04:01 AM UTC

Hi Raymond, You could emulate the double click on floating form using the below code snippet. private void button1_Click(object sender, System.EventArgs e) { DockHost dh=panel1.Parent as DockHost; if(dh.Parent is FloatingForm ){ Point p= dh.PointToScreen(dh.TitleBar.CaptionRect.Location ); FloatingForm ff=dh.Parent as FloatingForm; ff.HandleDoubleClick(p ); } } Here is the sample which implements this code. Please go through it and let me know, if you have any queries regarding this. Thanks for choosing Syncfusion products. Regards, Joy

Administrator [Syncfusion]
Replied On July 12, 2006 06:04 PM UTC

Thank you very much Joy! That worked perfectly


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

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