C# Picturebox transparent background doesn’t seem to work

If you want to overlay images over images (and not images over form), this would make the trick:

overImage.Parent = backImage;
overImage.BackColor = Color.Transparent;
overImage.Location = thePointRelativeToTheBackImage;

Where overImage and backImage are PictureBox with png (with transparent background).

This is because, as said before, the transparency of an image is rendered using the back color of the Parent container. PictureBoxes haven’t a “Parent” property so you have to make it manually (or create a cutom control of course).

Leave a Comment