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.

Connector - how to determine double click on label?

Thread ID:





109710 Jul 1,2013 03:41 AM Jul 4,2013 01:22 AM Windows Forms 1
Tags: Diagram
Klaudiusz Bryja
Asked On July 1, 2013 03:41 AM


Is it possible to determine double click on label element on connector (http://help.syncfusion.com/cr/windows%20forms/diagram)? We want to start action on this event. How to achive this?


Best regards,


Amsath Ali M [Syncfusion]
Replied On July 4, 2013 01:22 AM

Hi Klaudiusz,


Thanks for using Syncfusion products.


We suggest you to use the Diagram.EventSink’s NodeDoubleClick’ event and the below code to determine whether the mouse is double clicked on label. Please refer the below code snippet to achieve your requirement.


Here is the code:


diagram1.EventSink.NodeDoubleClick += new NodeMouseEventHandler(EventSink_NodeDoubleClick);

void EventSink_NodeDoubleClick(NodeMouseEventArgs evtArgs)


            PathNode node = evtArgs.Node as PathNode;

            Syncfusion.Windows.Forms.Diagram.Label lbl = node.Labels[0];

            PointF lblPosition = node.ConvertToModelCoordinates(lbl.GetPosition());

            RectangleF lblBounds = new RectangleF(new PointF(lblPosition.X - lbl.Size.Width / 2, lblPosition.Y - lbl.Size.Height / 2), lbl.Size);

            if (lblBounds.Contains(diagram1.Controller.MouseLocation))




Please refer the below attached sample and let us know if you have any queries.



Amsath Ali. M



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.