tags:

views:

191

answers:

3

I have small problem here, at the application runtime, I move a bit a Control over my Panel (with own Paint method). The problem is, how to catch that event, to make my Panel repaint?

A: 

You have to catch the event of the control, and then write code to repaint the panel (if I am understanding your question correctly).

Robert Harvey
A: 

You can also call the Panel's Invalidate() method to cause it to redraw at the end of your painting routine.

Paul Sasik
A: 

but, I can't find the event name which will be raised when a Control covers my Panel, that's all about

I thought it's Panel.Leave but I was wrong

Tony
Please _Edit_ your question instead of posting an answer.
Henk Holterman