transparent component

CodeKeep C# Feed Luglio 8th, 2008

Description: this is essential to create a component with transparent background

Link: http://www.codekeep.net/snippets/7c94d14a-c6ed-4f14-bfe1-bc110173845d.aspx

        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams cp = base.CreateParams;
                cp.ExStyle |= 0x20;
                return cp;
            }
        }

public constructor()
{
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            this.SetStyle(ControlStyles.Opaque, true);
}

  • .NET
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Comments are closed.

Trackback URI |