A
active
I have a UserControl that contains two pictureboxes.
One on top of the other.
The top one is smaller then the bottom one.
The top one is to be transparent.
I want to draw on it and then sometimes clear it and sometimes copy the
drawing to the bottom picturebox image or BackgroundImage.
Just to see if it would work I set the Background color of the top one to
transparent but, rather then seeing the bottom box in the transparent one I
see the UserControl backcolor. Is this to be expected?
As I read in the Help I can create a Bitmap that is transparent. I guess I
could set the Image of the top box to nothing and the background image to
the bitmap.
Not sure if that will work but it seems a shame to create another (big)
bitmap.
Is that the way to go or is there a cleaner way?
Cal
One on top of the other.
The top one is smaller then the bottom one.
The top one is to be transparent.
I want to draw on it and then sometimes clear it and sometimes copy the
drawing to the bottom picturebox image or BackgroundImage.
Just to see if it would work I set the Background color of the top one to
transparent but, rather then seeing the bottom box in the transparent one I
see the UserControl backcolor. Is this to be expected?
As I read in the Help I can create a Bitmap that is transparent. I guess I
could set the Image of the top box to nothing and the background image to
the bitmap.
Not sure if that will work but it seems a shame to create another (big)
bitmap.
Is that the way to go or is there a cleaner way?
Cal