将backcolor设置为Color.Transparent就是透明

解决方案 »

  1.   

    很简单,将Label.Backcolor设置成Color的四个参数的第一个参数设为255
      

  2.   

    heiguangbao(大头) 你的方法只能是相对于容器的背景色,并不能显示出“透明控件”下面的其他控件,而且 0 好像才是透明色。
      

  3.   

    this.label1.Parent = this.pictureBox1;
    this.label1.BackColor = Color.Transparent;
    this.label1.Location = new Point(10,10);
      

  4.   

    this.BaclColor =  Color.FromArgb(0,this.BackColor);
      

  5.   

    The BackColor property does not support transparent colors unless the ControlStyles.SupportsTransparentBackColor style bit is set to true. Color.Transparent is a invalid value for BackColor property of the Label control.Hope it could be help.