I have a picturebox that I draw a few lines on top of. But right now it does not look very nice as sometimes the the lines are not rendered(the background picture is) and the lines flicker a lot. I think the flickering problem comes from the fact that the picturebox is first drawed, they I draw it again using my custom OnPaint handler, and then I draw the lines on the top of that again.
Is there any nice ways around this? If I could disable the inbuilt paint call and pause the updating until I was done with my rendering I think it would look better, or atleast good enough.