Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I want to know if there is an easy way to enable keyboard shortcuts in Winform?

I just need CTRL +C, CTRL V,CTRL X, CTRL A.

Thanks for the help.
Posted
Updated 24-Aug-10 8:12am
v3

You need to handle the keypress event and then call the methods those keys should call.
 
Share this answer
 
Comments
Sandeep Mewara 24-Aug-10 15:21pm    
Comment from OP: can you write a code example ?
Don't ask for code please! Try first and tell us if you face issue while doing it.

Have a look at this: Control.KeyPress Event[^]
 
Share this answer
 
Comments
Toli Cuturicu 24-Aug-10 14:54pm    
Reason for my vote of 1
He did not.
Sandeep Mewara 24-Aug-10 15:12pm    
You don't have a priviledge to see it. I deleted that as it was a fake answer.
He wrote: "can you write a code example ?"

Shouldn't you ask before downvoting for such reason. This is the second time you have downvoted me without right reason.
Toli Cuturicu 25-Aug-10 8:32am    
Ok

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900