Click here to Skip to main content
15,847,427 members
Please Sign up or sign in to vote.
1.16/5 (4 votes)
See more:
I am working on C# windows form. I want to disable the functionality of ctrl+Z(Undo). Means user is not allowed to do Undo. How will I implement that.
Posted
Updated 29-Nov-22 6:07am
v2
Comments
Sergey Alexandrovich Kryukov 29-Apr-13 8:12am    
No one can "impliment" anything, only "implement".
Now, why? Ctrl+Z of some control or what?
—SA
sasen903 29-Apr-13 8:18am    
I an using Visio modeling view in my code, and the visio shapes are generating through database, now if a user deletes a shape then i want to restrict him to do ctrl+Z so that again the shape does not come to the model view.

Following will guide you on how to trap keystrokes. Once you trap it, implement the needed logic: MS Support: How to trap keystrokes in controls by using Visual C#[^]
 
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