private void PICVIEW_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { ContextMenu ctxM = new ContextMenu(); Point mousePoint = new Point(e.X, e.Y); MenuItem m1 = new MenuItem(); m1.Text = "Copy Image"; ctxM.MenuItems.Add(m1); ctxM.Show(PICVIEW, mousePoint); m1.Click += (senders, es) => { Clipboard.SetImage(m_PicViewImage); //m_PicViewImage ==> One of image file }; } }
댓글 없음:
댓글 쓰기