private void timer1_Tick(object sender, EventArgs e)
{
//左右的
//label1.Left -= 2;
//if (label1.Right < 0)
// label1.Left = this.Width;
//上下的
label1.Top -= 3;
if (label1.Bottom < 0)
label1.Top = this.Height;
}
原文:https://www.cnblogs.com/gisoracle/p/14995177.html