V
vooose
Consider a UserControl TopCont that contains two other UserControls,
CompA and CompB.
Somewhere in the constructor of TopCont we have
CompA.Paint += new PaintEventHandler(compA_Paint);
CompB.Paint += new PaintEventHandler(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.Invalidate(), 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 PaintEventHandler(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
CompA and CompB.
Somewhere in the constructor of TopCont we have
CompA.Paint += new PaintEventHandler(compA_Paint);
CompB.Paint += new PaintEventHandler(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.Invalidate(), 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 PaintEventHandler(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