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.

WM_COPY / WM_PASTE

Thread ID:

Created:

Updated:

Platform:

Replies:

42673 Apr 4,2006 09:16 AM Apr 6,2006 04:46 AM Windows Forms 2
loading
Tags: Diagram
Jonathan Urban
Asked On April 4, 2006 09:16 AM

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 09:42 AM

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 04:46 AM

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

CONFIRMATION

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.

;