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

德瑪西亞99
TA貢獻1770條經(jīng)驗 獲得超3個贊
label1.Parent = pictureBox1;label1.BackColor = Color.Transparent; // You can also set this in the designer, as stated by ElDoRado1239
- 3 回答
- 0 關(guān)注
- 342 瀏覽
添加回答
舉報
0/150
提交
取消