Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maintaining graphics on a panel

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I'm drawing graphics (DrawRectangle / FillRectangle / DrawString) onto a panel component using.
We're obtaining the 'Graphics' canvas (for want of a better word) using panel1.CreateGraphics() and working against that.
However every time the panel (or form) is repainted I lose the graphics that are drawn on it.
Is there any means I can maintain the graphics that we're drawing against the panel (or whatever component).
At the moment we're having to re-call the method every time the panel / form is re-activated / re-painted.
Thanks in advance
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top