Hello everyone
I have made a windows form application using Visual C# 2008. The form conntains a panel where im drawing different graphics objects like arcs, lines etc. But the problem is that when the window is restored after being minimized, the panel is refreshed i.e. every figure is erased. Can anyone suggest any solution please.
Thanx
Ahsan
Ahsan Baig
0
Newbie Poster
Recommended Answers
Jump to Postyou need to look at persistent graphics. When you minimise the form all of its controls are invalidated, when it is restored they each call their paint method. Unless you draw your custom images inside the paint methdo they wont be kept when the control repaints.
All 4 Replies
Geekitygeek
480
Nearly a Posting Virtuoso
Geekitygeek
480
Nearly a Posting Virtuoso
Ahsan Baig
0
Newbie Poster
Geekitygeek
480
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.