其中label 放到panel 中
Load里写
this.timer1.Start();
private void timer1_Tick(object sender, EventArgs e)
{
int FWidth = this.panel1.Width;
int FHeight = this.panel1.Height;
Point LPos = new Point(this.label1.Location.X, this.label1.Location.Y);
if (LPos.Y < FHeight)
{
this.label1.Location = new Point(LPos.X, LPos.Y+2);
return;
}
else
{
this.label1.Location = new Point(0, 0);
}
}