I'm trying to make my link label which is placed over a picture box to be transparent. Several things I have tried so far like.
Setting the linklabel's parent to picturecontrol and making the backcolor transparent
this.linkLabel1.Parent = pictureBox1;
this.linkLabel1.BackColor = System.Drawing.Color.Transparent;
Creating a subclass for my control and played with the ExStyle
public class TransparentLinkLabel : LinkLabel
{
public TransparentLinkLabel()
{
this.SetStyle(ControlStyles.Opaque, true);
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, false);
}
protected override CreateParams CreateParams
{
get
{
CreateParams parms = base.CreateParams;
parms.ExStyle |= 0x20; // Turn on WS_EX_TRANSPARENT
return parms;
}
}
}
So far no luck. Any further clues?