屏蔽Ctrl+C
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
public class MyTextBox : TextBox
{
public const int WM_COPY = 0x301;
public const int WM_CUT = 0x300;
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_COPY || m.Msg == WM_CUT) return;//不处理
base.WndProc(ref m);
}
}
Clipboard.SetDataObject(null);