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

Preventing a line from connecting to another shape?

Thread ID:





92502 Jan 19,2010 04:35 AM UTC Sep 15,2010 04:11 PM UTC WinForms 2
Tags: Diagram
Ron Alan Sawyer
Asked On January 19, 2010 04:35 AM UTC

Is there any way to prevent a line from connecting to other shapes? Is there a property that I can set that will prevent a line from connecting?


Dinesh M [Syncfusion]
Replied On January 21, 2010 11:49 AM UTC

Hi Ron,

You can use the following event to prevent the line connector from connecting to a shape.

diagram1.Model.EventSink.ConnectionsChanging += new CollectionExEventHandler(EventSink_ConnectionsChanging);

void EventSink_ConnectionsChanging(CollectionExEventArgs evtArgs)
evtArgs.Cancel = true;


Administrator [Syncfusion]
Replied On September 15, 2010 04:11 PM UTC

This example prevents any connection creating. How is it possible to allow the connection between to nodes, but after that, this exact connection could not be moved to another node or made disconnected from of of its nodes.


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