当label1.BackColor = ColorTransparent时,整个标签变为透明,文字消失

问题描述

当我尝试更改标签的背景颜色时,整个标签变得透明。因此代码有效,但不是我实际需要它工作的方式。我需要文本 (ForeColor) 为特定颜色,因此当标签放在 pictureBox1 上时,文本仅可见。

label1.Parent = pictureBox1;
        label1.BackColor = Color.Transparent;
        this.label1.ForeColor = Color.FromArgb(18,148,229);

before inputting the code

after inputting the code

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)