设置窗体的TransparencyKey属性,为你想要变成透明的颜色,比如: 你把窗体背景色设置成红色,然后把TransparencyKey设置成红色, 代码: this.BackColor=Color.Red this.TransparencyKey=Color.Red