This is a continuation to the previous question posted here:
How to draw line and select it in Panel
The answer is very well put together and comprehensive. However, the user states:
@TaW: In fact you shouldn't ever use
CreateGraphics
in the first place, as theGraphics
object will never stay in scope and the graphics it produces will not persist (i.e. survive a Minimize-maximize sequence)..
Is there a way to use Graphics
to the extent that it stays on the panel after minimising/maximising/resizing a window? OR is there an alternative way of doing this other than using Graphics
object?