I have a picturbox with a background picture.
I add a picture with a transparent background. No problem, the background remains.
I add a second picture with a transparent background. The first picture disappears, happily the background does remain.
How can I prevent the first picture from disappearing

How can I prevent the first picture from disappearing?
Matt Skone
I have a background image in a picturebox.
The program adds a foreground image (.png) witha transparent background. Excellent! I can see the background behind the foreground image. Just what I want!
I then want to add another image to the picturebox (like layers in Photoshop). But, my other foreground image disappears when I do.
I want to be able to stack the images up in layers with all of them visible.
Can I save the picturebox image to a file Then I could use that combined image as the background and add a foreground image to it, thus simulating the layers that I want.
DerPhilipp
I am not sure what you are doing. If you have a PictureBox and set the BackgroundImage and then the Image properties you can not set the Image property again to add another image to it. It will replace the first image you set.
This is matches how you explain it.
If you explain what you are trying to achieve you might get some suggestions how it can be done.
amr_sawy
When you have loaded the backgroung and first image you can combine them to a new bitmap with the DrapToBitmap() method.
Dim bm As Bitmapbm = New Bitmap(PictureBox1.Width, PictureBox1.Height)
PictureBox1.DrawToBitmap(bm, New Rectangle(0, 0, bm.Width, bm.Height))
PictureBox1.BackgroundImage = bm
PictureBox1.Image = ... next image to add on top
I create a bitmap with the same size as the picturebox and set it as the background. Then you can set a new image as foreground and repeat this to add layers on top of an image.