摘要: 首先先从System.Windows.Forms.Panel 继承一个自定义控件,然后在控件的构造函数中添加下面的代码 :SetStyle(ControlStyles.UserPaint, true);SetStyle(ControlStyles.SupportsTransparentBackColor, true);this.BackColor = Color.Transparent;其中调用SetStyle函数进行设置ControlStyles.SupportsTransparentBackColor为true 然后设置控件的背景颜色为透明Color.Transparent.把设计好的控件 阅读全文
posted @ 2010-11-16 06:23 JumpByte 阅读(357) 评论(0) 推荐(0)