Transparent control over PictureBox

后端 未结 7 1898
遥遥无期
遥遥无期 2020-11-22 14:21

In my C# Form I have a Label that displays a download percentage in the download event:

  this.lblprg.Text = overallpercent.ToString(\"#0\") + \"%\";
         


        
7条回答
  •  名媛妹妹
    2020-11-22 14:51

    You can just use

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

提交回复
热议问题