Search code examples
winformstransparencyopacityoverlapping

Overlapping User Controls in c#


I want to overlap two user controls but with transparency. The best way to explain this is by referring to the image I have uploaded.

As you can see on the image, I have three user controls in my panel. I want to overlap onw control on top of the other control and it should be with a transparency value (0 to 1). Is there a way to do this?

In this link is the image I was talking about. A user Controls contains a label ("Name") and a bitmap. On the image there are three such controls.

P.S. Because of my low reputation Im not allowed to upload images so I just gave the link of the image.

My User Controls


Solution

  • It looks like you're better off just merging the 3 images instead of the controls.

    How to do that? Here's a link:

    Merging two images in C#/.NET