C#右键的弹出式菜单怎样写
private void richTextBox1_MouseClick(object sender, MouseEventArgs e){
ToolStripMenuItem[] formMenuItemList = new ToolStripMenuItem[2];
formMenuItemList[0] = new ToolStripMenuItem("复制", null, new EventHandler(复制ToolStripMenuItem_Click(sender, e) ));//
//formMenuItemList[1] = new ToolStripMenuItem("粘贴", null, new EventHandler(pictureBox1.Paste(); ));
//ContextMenuStrip:表示快速鍵功能表
ContextMenuStrip formMenu = new ContextMenuStrip();
formMenu.Items.AddRange(formMenuItemList);
this.ContextMenuStrip = formMenu;
}
复制ToolStripMenuItem_Click(sender, e)这个函数不知道怎么写。还有怎么判定是单击右键的。希望能详细说明。谢谢