设置控件背景透明

public UserLoging()
{
    SetStyle(ControlStyles.UserPaint, true);
    SetStyle(ControlStyles.SupportsTransparentBackColor, true);
    this.BackColor = Color.Transparent;
    InitializeComponent();
}
posted @ 2010-08-30 16:18  黑色草莓  阅读(177)  评论(0编辑  收藏  举报