//select color ContextMenu private void Colorselect_Click(object sender, EventArgs e) { ColorSelection.ShowDialog(); ContextMNU.Show(PointToScreen(contextmenupos)); ColorName = ColorSelection.Color.Name; Debug.WriteLine(ColorName); }
//releases the drag operation private void pictureBox_MouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { if (Rect3.Contains(e.Location)) { //Debug.WriteLine("Right click"); // ContextMNU.Show(); // ContextMNU.AutoClose = false; ContextMNU.Show(PointToScreen(e.Location)); contextmenupos = e.Location; } } }