Custom control with transparent parent
Posted: Wed Jul 18, 2012 11:12 am
Hi,
I'm having a custom control (with paint and erase background event ) on top of a transparent parent frame (moveable using mouse event) and i'm trying to draw a transparent png to the centre of the control without any luck.
What i'm getting is an image with black rectangle as background!. please see the attached screenshot which has two custom controls with centered image.
Is there any way we can draw png file with transparency?
Test Source code <Test.zip> attached.
Thanks in advance
I'm having a custom control (with paint and erase background event ) on top of a transparent parent frame (moveable using mouse event) and i'm trying to draw a transparent png to the centre of the control without any luck.
What i'm getting is an image with black rectangle as background!. please see the attached screenshot which has two custom controls with centered image.
Is there any way we can draw png file with transparency?
Test Source code <Test.zip> attached.
Thanks in advance