Mark

Mark

  • NA
  • 29
  • 0

removing basic shapes in GDI+ with C# and .net framework 3.5

Aug 3 2009 8:39 AM
Hi, i just want to ask a quick question.

I wish to draw a shape in C# using the GDI+ and .net framework 3.5 in visual studio 2008, next i would like to delete the shape i have drawn when i press a button, however i do not wish to remove everything which is on the screen as i have some static GDI+ shapes in which i wish to keep on the screen.

So say that i draw a circle at a point on the screen where the mouse is clicked, how can i remove this when i click on a button?  Also say i draw three circles when i click the mouse at three given points on the screen, how can i remove all of these when i click on a button?

I can draw the shapes via mouse click and probably store the co-ordinates in an arraylist or something myself but what i do not know how to do is remove these shapes when they are no longer needed.

Thanks

Answers (6)