ITeye博客

C#设置背景透明

weeson · 2011-10-28 17:37 · WinForm · 编程语言 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。