为了账号安全,请及时绑定邮箱和手机立即绑定

对PictureBox的透明控制

对PictureBox的透明控制

aluckdog 2019-07-12 10:25:50
对PictureBox的透明控制在我的C#表单中,我有一个在下载事件中显示下载百分比的标签:  this.lblprg.Text = overallpercent.ToString("#0") + "%";Label控件的BackColor属性设置为透明,我希望它显示在PictureBox上。但这似乎不正确,我看到一个灰色的背景,它看起来不透明的顶部的图片框。我怎么才能解决这个问题?
查看完整描述

3 回答

?
狐的传说

TA贡献1804条经验 获得超3个赞

你可以用

label1.Parent = pictureBox1;label1.BackColor = Color.Transparent; // You can also set this in the designer, as stated by ElDoRado1239



查看完整回答
反对 回复 2019-07-12
  • 3 回答
  • 0 关注
  • 585 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信