Possible Duplicate:
A PictureBox Problem
I have a TabPage
which hosts some custom PictureBox
controls. What I do here is drawing some IC packages which user can click on theire pins to get some info. User can add multiple of this pictureboxes to the tabpage and move them around in the tabpage.
My problem is that this pictureboxes are transparent, only when they are not over each other. In the image below you see two of this pictureboxes added to tabpage. The tabpage has a blue background, in fact, it doesnt matter what color it has, the pictureboxes will have theire undrawn areas transparent to the tabpage:
But as soon as I move any of thise pictureboxes above another, it will not be transparent anymore:
This is the code that produces raw Image
that I will draw on it:
//Setting up image area
Image = new Bitmap(requiredImageWidth, requiredImageHeight, PixelFormat.Format32bppArgb);
Image.MakeTransparent();
The rest are default settings I didnt change anything else. What do you think causing this behaviour?