Transparant picturebox

J

Jeroen Timmers

Hi,

I'm trying to place a control onto a form behind a picturebox. Some area's
of this picturebox
are defined as transparant. Now I run into the problem of not seeing the
controls anymore.

What does happen is the transparent area is taking the same color as the
form so it looks transparant but not truly is. What am I doing wrong?!

thanks in advance

Here is some sample code..

// set transparant color
Bitmap bmp = new Bitmap(this.ImgBackground.Image);
bmp.MakeTransparent(Color.FromArgb(255,0,255));
this.ImgBackground.Image= bmp;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top