private void Panel_MouseMove (object sender, MouseEventArgs e) { if (mouseDown) { Left = Cursor.Position.X - _panel.Width / 2; Top = Cursor.Position.Y - _panel.Height / 2; } }