I have a program that continuously randomly draws on a PictureBox object. I am using - Application.DoEvents() - to Catch the EXIT button click to stop the program. This does work, but it has the side-effect of randomly clearing the PictureBox every once in a while. Does anybody know how to stop this Call from clearing the PictureBox?
0 · ·