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

Docking control double click

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

2 Replies

JK Joy K George Syncfusion Team 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


AD Administrator Syncfusion Team July 12, 2006 06:04 PM UTC

Thank you very much Joy! That worked perfectly

Loader.
Live Chat Icon For mobile
Up arrow icon