相关疑难解决方法(0)

如何在C#中旋转标签?

我想显示一个旋转90度的标签(所以我可以将一堆标签放在桌子顶部作为标题).是否有捷径可寻?

c# text winforms

12
推荐指数
2
解决办法
5万
查看次数

如何在C#/ Windows窗体中翻转/旋转标签?

如何在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)

c# rotation image-rotation

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

c# ×2

image-rotation ×1

rotation ×1

text ×1

winforms ×1