private void myMove() { label2.Left = label2.Left + 20; //当标签移除画面,重新复位 if (label2.Left > this.Width) { label2.Left = -this.Width; } } private void timer1_Tick(object sender, EventArgs e) { myMove(); }
时间: 2024-10-27 07:54:08
private void myMove() { label2.Left = label2.Left + 20; //当标签移除画面,重新复位 if (label2.Left > this.Width) { label2.Left = -this.Width; } } private void timer1_Tick(object sender, EventArgs e) { myMove(); }