Jin,
When paint something on the form, the form doesn't remember what you
painted. Rather, when it needs to, the form repaints itself at regular
intervals.
What you need to do is store the information about where the line should
be drawn on your form. Then, call the Invalidate method on your form. When
you do that, it will cause a repaint. Then, from your form, you would
override the OnPaint method or sign up for the Paint event. Then, in these
methods, you would paint the line on your form according to the information
you stored.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"jin" <ji*@discussions.microsoft.com> wrote in message
news:67**********************************@microsof t.com...
Sorry, is there any way that after we draw some line or graphics on the
windows form, after the windows minimized, the line and graphics won't
dissappear?
I'm appreciate for any reply, thank you