VB NET Custom Control is trashing while not focused

Joined
Mar 17, 2011
Messages
1
Reaction score
0
I've 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. I'm using Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) to paint the text and lines, and while focused, the control displays fine. How do I prevent the trashing while it's not focused and I drag another window over it?
 
Back
Top