예제 #1
0
 //select color ContextMenu
 private void Colorselect_Click(object sender, EventArgs e)
 {
     ColorSelection.ShowDialog();
     ContextMNU.Show(PointToScreen(contextmenupos));
     ColorName = ColorSelection.Color.Name;
     Debug.WriteLine(ColorName);
 }
예제 #2
0
 //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;
         }
     }
 }