private void panel1_MouseMove(object sender, MouseEventArgs e) { if (e.Button.ToString().Equals("Left")) panel1.Location = e.Location; }