Click to See Complete Forum and Search --> : Graphics and Picture Box


Andy Tacker
March 17th, 2004, 10:22 AM
Hello Folkz...
got one problem, while doing some programming with PictureBox.
so, I have got a Picture box, which shows a picture. now I use OnPaint event to Draw points and lines between them. but I cannot remove these line which I drew :(
how can I do that? remove graphics, i drew over the PictureBox, using Graphics.

Norfy
March 17th, 2004, 11:32 AM
Hi Andy,

you may have to be more specific.

If you call pictureBox.Invalidate(), and not draw the lines in the OnPaint, surely they disappear.