C# winform滚动字幕效果

 private void timer1_Tick(object sender, EventArgs e)
        {
            label1.Left -= 2;
            if (label1.Right < 0)
            {
                label1.Left = this.Width;
            }
        }

在窗体的定时器上编写上面的代码就可以看到效果了。

原文地址:https://www.cnblogs.com/heroysj/p/12713044.html