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.

Key "control" + mouse moved on diagrams''node.

Thread ID:





94735 May 31,2010 03:58 AM Jun 1,2010 01:25 AM Windows Forms 3
Tags: Diagram
Fabien Campagne
Asked On May 31, 2010 03:58 AM


I am actually using Essential Studio 2009 for Windows Forms.

I would like to prevent the following behavior within the diagrams’nodes:
After selecting a node, how to prevent key control + mouse moved to create a copy of the selected node?

Thanks for your answers.


After KeyControl_90f4b003.rar

Jaffersathick B [Syncfusion]
Replied On May 31, 2010 05:36 AM

Hi Fabien Campagne,

Thank you for contacting Syncfusion Support.

You can prevent copying a node by pressing ctrl+ drag drop of the node by canceling the event in NodeCollectionChanging event.


this.diagram1.Model.EventSink.NodeCollectionChanging += new CollectionExEventHandler(EventSink_NodeCollectionChanging);

void EventSink_NodeCollectionChanging(CollectionExEventArgs evtArgs)

Keys modkey = Control.ModifierKeys;
if (modkey == Keys.Control)
evtArgs.Cancel = true;


Please try this and let me know if this helps.


Fabien Campagne
Replied On May 31, 2010 09:18 AM


Thanks for your helps.

I'm working with 2 kinds of nodes:
- FilledPath (as shown in my example)
- ControlNodes

The sample code you sent me works properly with FilledPath. Besides, it doesn't work with ControlNodes.

Is there a logical reason for this behavior?


After key_5cf3867f.rar

Jaffersathick B [Syncfusion]
Replied On June 1, 2010 01:25 AM

Hi Fabien Campagne,

Thanks for the update.

I tried the same behavior in our dashboard sample and the reported issue does not occur. Please have a look at the sample and if the issue still exists, could you try reproducing it in the above sample and send us the modified sample, so that we could sort out the cause of the issue and provide you a solution.




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.