Point lastClicked; private void Form1_MouseDown(object sender, MouseEventArgs e) { lastClicked = e.Location; } private void Form1_MouseUp(object sender, MouseEventArgs e) { } private void Form1_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { this.Left += e.X - lastClicked.X; this.Top += e.Y - lastClicked.Y; } }
areo = when i drag the from up to the top of my screen the from maximizes
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)