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

dragging while pressing ctrl- key

Thread ID:





57374 Mar 2,2007 11:59 AM UTC Sep 22,2010 02:30 PM UTC WinForms 4
Tags: Diagram
Administrator [Syncfusion]
Asked On March 2, 2007 11:59 AM UTC


Why when I select several symbols in the diagram with mouse using Ctrl key and then drag these symbols to another location still holding Ctrl-key, selected symbols are copied. Is it by design?
If so, how can I deny this copying?I just want to move symbols regardless Ctrl-key

J.Nagarajan [Syncfusion]
Replied On March 2, 2007 11:51 PM UTC

Hi Ok,

This is Diagram's intented behaviour . We are currently analysing this behaviour. We will update you on Monday regarding this issue. We sincerely apologize for this time delay.


J.Nagarajan [Syncfusion]
Replied On March 7, 2007 06:29 PM UTC

Hi Ok,

Sorry for the delay in getting back to you. You have to implement an override for the System.ICloneable.Clone() method and return the current symbol to prevent the Copy- Paste action.

The following code shows the Clone() implementation for your requirement,

public class MySymbol:Symbol
public MySymbol()
public override object Clone()
return this;

I have attached the sample that demonstrates this completely. I hope this will meet your requirement.

You can download this sample from the following page


Please refer to this sample and let me know if you have any questions.

Thanks for using Syncfusion product.


Administrator [Syncfusion]
Replied On September 13, 2010 06:47 PM UTC


In attempting to upgrade to the latest version I have to solve a lot of problems, for example with the Clone overriding, as it was suggested in this thread.

Current version gives very interesting result of this. While I'm clicking on diagram symbol, it dissapeares slowly. After a long investigation, I understood that the reason is this Clone method override. Symbol select calls Clone and it changes opacity of the symbol, and does not change it back.

So, I've deleted this Clone override, but the question returns. What is the method to prevent symbol copying during drag with Ctrl-key pressed..


Pandi Murugan A [Syncfusion]
Replied On September 22, 2010 02:30 PM UTC


Thank you for your interest in Syncfusion Products.

We suggest you to use NodeCollectionChanging Event and add the following logic(code snippet)in this event to achieve your requirement.

Please refer the below code snippet.

if (evtArgs.ChangeType == CollectionExChangeType.Insert)
if (Control.ModifierKeys == Keys.Control)
if (evtArgs.Element != null)
evtArgs.Cancel = true;

We have created a simple sample for demonstrate this and the same can be downloaded from the below link.


Please let me know if you have any concerns.

Pandi Murugan A


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

or the page will be automatically redirected to 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