Consider a UserControl TopCont that contains two other UserControls,
CompA and CompB.
Somewhere in the constructor of TopCont we have
CompA.Paint += new PaintEventHandl er(compA_Paint) ;
CompB.Paint += new PaintEventHandl er(compB_Paint) ;
I am calling Invalidate() on both of the child components and this
results in their respective paint methods executing. However at some
point when I call CompA.Invalidat e(), its painting method (compA_Paint)
is not being called. (this is what I am trying to figure out). I *never
*actively* do
CompA.Paint -= new PaintEventHandl er(compA_Paint) ;
so I'm wondering how this would occur? Also I am using the debugger to
step over the lines of code where I have observed this happening but I
don't ever see the Control.Paint when I inspect the component.
I guess my second question is how at a given breakpoint can you inspect
a control and see which method was += to the Paint event?
Wal
--
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!