buju banton

buju banton

  • NA
  • 3
  • 0

Control repainting problem

May 5 2006 4:33 PM
Hello everyone. I just got my hands dirty with C#, and now i am trying to write an application involving GDI+ graphics. Here is the problem that i can't figure out. Maybe someone can help: Details: I use a windows Form as my main drawing space for a problem involving graphs. When you click on the form, the code draws a circle ( wich is a graph node) at the mouse pointer location. All of theese are happening in a button's Click event. The problem is that whenever i minimize the app and then restore it, all of the drawings are gone. How can i save my graphics in such a way that whenever i restore the app from the tray bar, the graphics is still there? PS: I think it's something about the control's Paint Event.

Answers (1)