hi folks,
I'm writing a program for a punch press that displays the pattern to be punched. I have learned how to retrieve the data from a spreadsheet calculate the hole angles and draw them on my form
{ Using g As Graphics = Me.CreateGraphics
Dim pn As New Pen(Color.Crimson, 3)
Dim circ As New Rectangle((xdrawloc), (ydrawloc), 12, 12)
g.DrawEllipse(pn, circ)
xloc.Add(xdrawloc)
yloc.Add(ydrawloc)
End Using}
The basic pattern has multiple holes and is different for each process. As the machine runs it fills in the holes and changes colors.
My problem is when the form is minimized and then reopened all the graphics are gone. If the program is running then it keeps adding drawings to the screen but the prior screen drawings have been erased. How do i retain all the drawings that are getting placed on the screen when it is minimized. It's probably an asy answer but i'm new and going in the circles i'm trying to draw.