void miCopy_Click(object sender, EventArgs e) { this.ContextMenu.SourceControl.Select();//先获取焦点,防止点两下才运行 V5RichTextBox rtb = (V5RichTextBox)this.ContextMenu.SourceControl; rtb.Copy(); }
void Paste_Click(object sender, EventArgs e) { this.ContextMenu.SourceControl.Select(); V5RichTextBox rtb = (V5RichTextBox)this.ContextMenu.SourceControl; rtb.Paste(); }
void Del_Click(object sender, EventArgs e) { this.ContextMenu.SourceControl.Select(); V5RichTextBox rtb = (V5RichTextBox)this.ContextMenu.SourceControl; rtb.Text = ""; }