how to disable copy, Paste and delete features on a textbox using C#

前端 未结 6 818
既然无缘
既然无缘 2020-11-27 04:57

Can anybody please suggest how to handle Cut,Copy and Paste events on a Text Box in WinForms using C#?

6条回答
  •  悲&欢浪女
    2020-11-27 05:51

    In WinForms, the easiest way to disable cut, copy and paste features on a textbox is to set the ShortcutsEnabled property to false.

提交回复
热议问题