When I use the SetPixel API with a picture box and the picture box redraws, (via autoredraw or just minimizing and maximizing the form), the pixels that was drawn on the picturebox by the setpixel api disappears.

Why does it do it and how do I stop it from happening?
Might it have something to do with the fact that the api draws on a different graphic level?