Help picturebox c#
I created two pictureboxes, C#, I want when the images collide, there is an overlap, because one of the pictureboxes covers the other, not with the image, but with the square of the picturebox (the transparent background that covers the other pictutebox), I cannot use picturebox.Parent, because one of the pictureboxes must follow the other, and therefore if I used picture.Parent, I would have to enlarge one picturebox because otherwise you would not see the other one, but if I enlarge the other one, the picturebox that he has to chase, obviously stops before the image. In simple terms: I want a picture box with perfect shape, not a square, can anyone help me?
7 Replies
why do pictureboxes have to overlap?
(sorry for the delay)
the easiest way to do that is if you have the image with a transparent background (so with an alpha channel)
then you should be able to set the picturebox to respect the transparency
It's setted to transparent
Wait, backcolor != Background, right?
i should try to do it myself, i don't remember the exact settings
rethinking about it, if you need that kind of transparency+overlapping either you draw the images yourself or you can try using just the 2d graphics features from opengl/directx
what
in a form?