先记录location,再在LocationChanged或move事件里把记录下的值再给location
private Point point;
private void Form1_Load(object sender, EventArgs e)
{
point = this.Location;
}
private void Form1_Move(object sender, EventArgs e)
{
this.Location = point;
}