Transparent background on winforms?

前端 未结 9 2081
走了就别回头了
走了就别回头了 2020-11-29 03:39

I wanted to make my windows form transparent so removed the borders, controls and everything leaving only the forms box, then I tried to the BackColor and TransparencyKey to

9条回答
  •  萌比男神i
    2020-11-29 04:36

    The manner I have used before is to use a wild color (a color no one in their right mind would use) for the BackColor and then set the transparency key to that.

    this.BackColor = Color.LimeGreen;
    this.TransparencyKey = Color.LimeGreen;
    

提交回复
热议问题