private void timer1_Tick(object sender, System.EventArgs e)//实现文字的滚动
{
this.label7.Location = new Point(label7.Location.X + 1, label7.Location.Y);
if(this.label7.Text.Length>10){this.label7.Location = new Point(label7.Location.X, label7.Location.Y);timer1_Tick(sender,e);}
}这样为什么不可以实现文字的循环滚动呢?

解决方案 »

  1.   

    private void timer1_Tick(object sender, System.EventArgs e)//实现文字的滚动
    {
    label7.Left+= 10;
     if(label7.Left > this.Width) label7.Left = 0;
    }
    }这样为什么不可以实现文字的循环滚动呢?
      

  2.   

    timer1_Tick时间内的函数就是每隔timer1的interval时间内要做的东西,不要再调timer1_Tick(sender,e);
    wxdl1981的应该能够实现