views:

22

answers:

0

Hi all,

The Graphics object in UserControl.Paint event makes sure that contents are drawn within the boundary of the user control. I guess the same graphics object is used to draw the entire window (by passing different clipping regions for different controls inside the form).

My question is, is there a trick/hack with which, the Parent can be updated from within the UserControl?

I tried hooking on to the Parent.Paint event, but it makes the VS to hang. I suspect it to be an infinite looping where parent is drawing its children but one of its child is causing the parent to Invalidate()..!!

Is there a solution without using the Parent.Paint?

Thanks

Dattebayo