View Single Post
Old 15th July 2008, 08:45   #16
zeitghost
More fingers than teeth
 
zeitghost's Avatar
 
Join Date: Jul 2005
Posts: 14,599
Default

Quote:
Originally Posted by NickFitz View Post
First, you need to set the AutoRedraw property to True before you do the drawing - the system then knows to keep track of what you draw. Otherwise, it expects you to have a Paint event handler that will redraw it every time.

You can check if this is the problem by hiding the window behind another window and then bringing it to the front again - if the PictureBox isn't redrawn, then change the code to set AutoRedraw before drawing, and try again - it should now work as expected.
Yup.

Did that, it now redraws ok... still doesn't save the image though...

I'm onto the next suggestion now, with the .Image thingie instead of the .Picture thingie...

This is so exciting...
zeitghost is offline   Reply With Quote