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.
Syncfusion Feedback


Thread ID:





42673 Apr 4,2006 01:16 PM UTC Apr 6,2006 08:46 AM UTC Windows Forms 2
Tags: Diagram
Jonathan Urban
Asked On April 4, 2006 01:16 PM UTC

Hi! Is there a way to catch specials keyboard inputs such as CTRL+C or CTRL+V on a digram object? THX!

Administrator [Syncfusion]
Replied On April 5, 2006 01:42 PM UTC

Hello, The Copy()/Paste() function on the diagram nodes can also be performed through the keyboard inputs. This is demonstrated in the Samples/ In Depth / DiagramBuilder sample. Also you can catch the keyboard inputs on a diagram object by handling the Diagram.KeyUp(0 event handler. Kindly refer the following sample code snippet that shows the code implementation. private void diagram_KeyUp(object sender, KeyEventArgs e) { if(e.KeyCode == Keys.C && e.Control) this.diagram.Controller.Copy(); if(e.KeyCode == Keys.V && e.Control) this.diagram.Controller.Paste(); } Please let me know if you have any queries. Thanks, Meera.

Jonathan Urban
Replied On April 6, 2006 08:46 AM UTC

THX Fathima!!! In fact, I did not know e.Control... :)


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.

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