private void MainForm_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { _lastClick = new Point(e.X, e.Y); //We'll need this for when the Form starts to move } Application.DoEvents(); }