-
BitBlt prob...
I am using BitBlt to draw a picture. I am having some probs...
1) However, when the form on which the picture is drawn is moved, resized, minimized, etc. the picture is erased. How do I prevent this happening?
2)If I move another form over my 'front' picbox, some of the picture is erased, since I can't set AutoRedraw to True.
How can I make this picture 'redraw' even when this form doesn't have focus, to prevent this problem?
Thanks.
-
Theres a Form_Paint -event.. put your drawing code there
-
That doesn't work I'm afraid.
The Form_Paint event doesn't fire here.
:(
-
it should .. hm even tried Form_Resize?
-
Yep, it doesn't happen. The only event I have been able to capture is the GotFocus event of the control on the form with TabOrder = 0.
But that is only captured when the form is clicked or something.
I need to paint this pic again when I move something over it, without having to click on the picture to make it reappear.