如何在C#Windows窗体中翻转/旋转标签?
我将背景图像设置为我的标签.
在每个时间间隔,它将三个像素移动到右侧.当它到达表格结束位置时,我需要翻转并转回标签.
我尝试了以下方式,但我没有得到解决方案.
private void timer1_Tick(object sender, EventArgs e){
if (label2.Location.X < this.Width)
label2.Location = new Point(label2.Location.X + incr, label2.Location.Y);
else
{
incr = -2;
label2.Location = new Point(label2.Location.X - 50, label2.Location.Y);
label1.Image.RotateFlip();
}
this.Refresh();
}
Run Code Online (Sandbox Code Playgroud)