private void lbl29_MouseDown(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Left) { MouseDownLocation = e.Location; panel1.Invalidate(); } } private void lbl29_MouseMove(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Left) { lbl29.Left = e.X + lbl29.Left - MouseDownLocation.X; lbl29.Top = e.Y + lbl29.Top - MouseDownLocation.Y; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)