I created a VB NET Custom Control - a simple graph with some text. Dragging another window over it trashes the text and lines I've drawn. How do I prevent the trashing while not focused and I drag another window over it?
I tried placing all the drawing code in OnPaint(). Then I tried placing the code in Paint() and only calling MyBase.OnPaint(e) in OnPaint(). That didn't work.
I tried placing all the drawing code in OnPaint(). Then I tried placing the code in Paint() and only calling MyBase.OnPaint(e) in OnPaint(). That didn't work.