如何删除 TextBox 控件的默认上下文菜单?C# [英] How to remove the default context menu of a TextBox Control? C#
本文介绍了如何删除 TextBox 控件的默认上下文菜单?C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何删除 TextBox
控件的默认上下文菜单?
How to remove the default context menu of a TextBox
Control?
是否有禁用它的属性?
谢谢:)
Is there a property to disable it?
Thanks :)
推荐答案
您还可以将 ShortcutsEnabled
属性设置为 false
.这将删除默认上下文菜单和所有剪贴板功能.我想这就是你试图取消菜单的原因?除了故意阻止您的用户使用复制/粘贴功能之外,我想不出任何好的理由.
You can also set the ShortcutsEnabled
property to false
. This removes the default context menu and all clipboard functionality. I presume that's why you're trying to suppress the menu? I can't think of any good reason other than purposefully preventing your users from using copy/paste.
这篇关于如何删除 TextBox 控件的默认上下文菜单?C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文