Q8Y
Q8Y

Reputation: 4001

How to implement a Ctrl+C action in C#?

How can I implement a combination(Ctrl+C) key pressed action in c# ?? I need the application to press the key (Ctrl+C) when the user click a button ??

I don't want it to detect the key press, because I did that already. I need the application to perform the Ctrl+C action when a button pressed, instead of pressing from the keyboard. Because I will use that for the Edit menu for my application ;)

Note: I just want it to do the Ctrl+C action, I don't want it to copy the text, because it's already done. Only I want is to press those key.

Thanks alot

Upvotes: 2

Views: 1440

Answers (1)

digEmAll
digEmAll

Reputation: 57210

You could use SendKeys class methods Send or SendWait

Upvotes: 2

Related Questions