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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top