回复 1楼DCAgile的帖子
测试代码如下:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.textControl1.TextContextMenuOpening += textControl1_TextContextMenuOpening;
- }
- void textControl1_TextContextMenuOpening(object sender, TXTextControl.TextContextMenuEventArgs e)
- {
- e.Cancel = true;
- }
复制代码 |