對(duì)PictureBox的透明控制在我的C#表單中,我有一個(gè)在下載事件中顯示下載百分比的標(biāo)簽: this.lblprg.Text = overallpercent.ToString("#0") + "%";Label控件的BackColor屬性設(shè)置為透明,我希望它顯示在PictureBox上。但這似乎不正確,我看到一個(gè)灰色的背景,它看起來(lái)不透明的頂部的圖片框。我怎么才能解決這個(gè)問(wèn)題?
3 回答

狐的傳說(shuō)
TA貢獻(xiàn)1804條經(jīng)驗(yàn) 獲得超3個(gè)贊
label1.Parent = pictureBox1;label1.BackColor = Color.Transparent; // You can also set this in the designer, as stated by ElDoRado1239
- 3 回答
- 0 關(guān)注
- 631 瀏覽
添加回答
舉報(bào)
0/150
提交
取消