Hi, this is probably something really basic, but I havent been doing graphics in VB for long and I'm stuck:

I'm using the API SetPixel and GetPixel functions with Picture Boxes in my application, but everytime that I minimize the app all of the pixels that I have set disappear, and the Picture Box reverts to its background color (or if there was a loaded picture in the box, to that).

A similar thing happens when saving the image within the Picture Box. Even if the pixels that I set remain in the box on screen, the saved image on my disc is either of the background color of the Picture Box, or of the originally loaded image.

I'm using Visual Basic 6.0 Enterprise Edition.

Can anyone help?

Thanks,

ISDP