日期:2014-05-17  浏览次数:20814 次

C#设置背景透明

1. <asp:label Id= "label1 " BackColor= "Transparent ">
2.this.label1.BackColor = System.Drawing.Color.Transparent;
3.在窗体的Load事件中加上这句代码试试看
SetStyle(ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);