private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { if (fig.MouseIsDragging() && busyDrawingPlot == false) { fig.MouseMove(e.X, e.Y); busyDrawingPlot = true; ResizeAndRedraw(); Application.DoEvents(); busyDrawingPlot = false; } }