如何禁用Ctrl + Z. [英] How to Disable Ctrl+Z

查看:343
本文介绍了如何禁用Ctrl + Z.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#windows窗体。我想禁用ctrl + Z(Undo)的功能。表示不允许用户进行撤消。我将如何实现它。

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.

推荐答案

以下将指导您如何捕获击键。陷阱后,实现所需的逻辑: MS支持:如何使用Visual C#陷阱控件中的击键 [ ^ ]
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#[^]






浏览以下链接..



http://www.csharp-station.com/Articles/EventHandlingInCSharp.aspx [ ^ ]



http://msdn.microsoft.com/en-IN/library/ms171535.aspx [ ^ ]


这篇关于如何禁用Ctrl + Z.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆