Click here to Skip to main content
15,904,823 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to impliment ctrl+Z ctrl+v feature.. dont know which event to use?
Posted

You can use MDI parent Form & can add a Tool Strip MenuItem & can set it short cut keys. And you also able to perform your operation in tool strip menuItem click. So, when ctrl+Z or ctrl+v occur then it will fire the tool strip menuItem click.
 
Share this answer
 
Comments
himani_jha 29-Sep-10 2:43am    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
Man, I'm really getting tired of saying try google first:

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx[^]
 
Share this answer
 
Comments
aayu 28-Sep-10 8:48am    
good link
himani_jha 28-Sep-10 8:57am    
I've tried google first. and also seen that page that u r suggesting but it is limited to textbox only. I have a form in that I have a panel. In panel there r many usercontrol .. I can click ctrl z any time to revert changes. how to handle this event?
I have used editor_keypress but its not working. plz have u any solution
Smithers-Jones 28-Sep-10 10:24am    
himani_jha, stop using that crappy textspeak. You are dealing with grown ups (and you are one yourself, I assume), so behave like a grown up and use all the letters on your keyboard. There is no character restriction.
 
Share this answer
 

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