Control Background Image from parent form?

M

mrabie

Hi All,

I am developing a list control where i override the OnPaint even since
i am drawing all the elements of the control manually and also
manually handling the scroll. I want to have the background of the
control to be semi-transparent, so what i thought of is to capture the
form's area where the control is placed and add it to the background
buffer i have. It works fine but the problem is that the capture is
done before the forms actually loads so i get the image of the desktop
and not the form itself (since i do the capturing in the form_load
function. Is there a way to overcome this? that i don't capture the
image except after the form background if drawn or the form is visible
then maybe show my control?
thank
 
M

mrabie

Thanks for the quick reply, Well that's what i do, i hide my control
crap the picture and don't show it again except at the end of the
Form_Load().  I'll check DrawToBitmap() and see how it works.

thanks

Hey i tried the DrawToScreen() method and it worked great.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top