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. Image for the cookie policy date
close icon

WM_COPY / WM_PASTE

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

2 Replies

AD Administrator Syncfusion Team 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.


JU Jonathan Urban April 6, 2006 08:46 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon