private void timer1_Tick(object sender, EventArgs e)
{
//控制播放停止
if (true)
{
//label1移动播放
if (label1.Location.X < 0 && Math.Abs(label1.Location.X) - label1.Width >= 0)
{
label1.Location = new Point(panel1.Width, label1.Location.Y);
return;
}
label1.Location = new Point(label1.Location.X - 5, label1.Location.Y);
if (label1.Location.X < 0)
{
label1.Location = new Point(this.Width, label1.Location.Y);
}
}
}