I am having the following problem: I have a main form on which I draw some simple shapes (rectangles) with text inside of them. I do this by overriding the onPaint event for the form (I've also tried in the paint event handler).
When I click inside of one of the rectangles another form pops up. If I move the new form around the screen (using the title bar) it acts as an eraser, erasing all text inside the rectangles (but not the rectangles). The drawing of the text is handled using:
g.DrawString(lastname, drawFont, New SolidBrush(Color.Black), x, Me.y + 1)
This line of code is executed within an object (hence the Me reference). This code is also called when the initial form is drawn. This line appears right after the drawrectangle call.
Any ideas would be appreciated.
When I click inside of one of the rectangles another form pops up. If I move the new form around the screen (using the title bar) it acts as an eraser, erasing all text inside the rectangles (but not the rectangles). The drawing of the text is handled using:
g.DrawString(lastname, drawFont, New SolidBrush(Color.Black), x, Me.y + 1)
This line of code is executed within an object (hence the Me reference). This code is also called when the initial form is drawn. This line appears right after the drawrectangle call.
Any ideas would be appreciated.