private void pictureBoxGraph_MouseMove(object sender, MouseEventArgs e) { PointF p = graphDrawer.GetMouseLocation(e.Location, false); lblMousePosition.Text = "x = " + Math.Round(p.X, 3) + "\ny = " + Math.Round(p.Y, 3); if (e.Button == System.Windows.Forms.MouseButtons.Left) { graphDrawer.Move(-(e.X - MouseDownLocation.X) / 20, (e.Y - MouseDownLocation.Y) / 20); } }