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

ConnectionPoint Mouse Move

Thread ID:





93638 Mar 25,2010 03:37 PM UTC Feb 21,2018 12:47 PM UTC WinForms 7
Tags: Diagram
Domenico Mozzone
Asked On March 25, 2010 03:37 PM UTC

Dear Support,
I need help to change the position of a ConnectionPoint of a symbol using the mouse. I'm trying to implement follows steps.
1. Mouse down (on the Connectionpoint) -> selection ConnectionPoint
2. Move mouse -> move (redrawing the ConnectionPoint on the Mouse Pointer)
3. Mouse up -> reposition

Is there an example where I can find ideas

Thank You

Best Regards


Melba Winshia [Syncfusion]
Replied On March 30, 2010 12:52 PM UTC

Hi Domenico,

Thank you for your interest in Syncfusion Products.

Please use below code to change the position of a ConnectionPoint of symbol using the mouse:


private void diagram1_MouseMove(object sender, MouseEventArgs e)
PointF mouseLocation = diagram1.Controller.ConvertToModelCoordinates(e.Location);
Node nd = diagram1.Controller.GetNodeAtPoint(mouseLocation);

if (nd != null)
ConnectionPoint cp = HandlesHitTesting.GetConnectionPointAtPoint(nd, mouseLocation);
if (cp != null)
Cursor.Current = Cursors.Hand;
cp.Position = Position.Custom;
PointF portLocation = nd.ConvertToNodeCoordinates(mouseLocation);
cp.OffsetX = portLocation.X;
cp.OffsetY = portLocation.Y;

Please let me know if this helps.


Johan De Mulder
Replied On December 6, 2013 06:17 PM UTC

Moving the port when the mouse moves over it works. But how do you select a port by clicking on it, then move it to a new position and release the mouse (similar to a node).

1. Mouse down (on the Connectionpoint) -> selection ConnectionPoint
2. Move mouse -> move (redrawing the ConnectionPoint on the Mouse Pointer)
3. Mouse up -> reposition

Ashok Kumar V [Syncfusion]
Replied On December 10, 2013 07:37 AM UTC

Hi Johan,

Thanks for your interest in Syncfusion product.

We regret to inform you that we don’t have support to select and move the connection point like node.

 However, we suggest you to activate “ConnectionPointTool” to move the Connection point to the

 required location. Please refer the below code snippet.


private void Form1_Load(object sender, EventArgs e)


            OrthogonalConnector connect = new OrthogonalConnector(new PointF(100, 200), new PointF(400, 200));

            ConnectionPoint cp = new ConnectionPoint();

            cp.VisualType = PortVisualType.Triangleport;

            cp.Size = 20;





        private void button1_Click(object sender, EventArgs e)





        private void button2_Click(object sender, EventArgs e)




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



Ashok Kumar.


Johan De Mulder
Replied On December 13, 2013 04:13 PM UTC

Hello Ashok,

The video in the attached sample looks like a good alternative to move a certain port.
However the code that is included in the zip file does not correspond with what is demonstrated in the video. The code shows how to add additional ports.

Can you please provide the code that corresponds with the video?

Best regards,

Ashok Kumar V [Syncfusion]
Replied On December 30, 2013 11:13 AM UTC

Hi Johan,


Thanks for your update.


Please note that the connection point tool is an interactive tool for inserting, deleting and moving the 

connection points on diagram nodes. You can insert a connection point by clicking the node and delete a 

connection point by holding CTRL and clicking the node. Also, you can move the connection point by 

pressing the left mouse click over the connection point and dragged to the required location. Here is the 

documentation link for your reference.


Link: http://help.syncfusion.com/ug/windows%20forms/diagram/documents/diagrambuilder.htm


Please let us know if you have any queries.



Ashok Kumar.

david adele
Replied On February 20, 2018 09:19 AM UTC


Naganathan Ganesh Babu [Syncfusion]
Replied On February 21, 2018 12:47 PM UTC

Hi Johan, 
Thanks for the update  
Please let us know whether you need any assistance  
Naganathan K G 


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