tags:

views:

348

answers:

1

C#: Does SuspendLayout cascade to child controls?

Do I have to iterate the child of the control myself to call suspendlayout on them? and on their grand child? grand grand child?? grand grand grand child?

Thanks

+2  A: 

Yes; SuspendLayout stops the control being painted (or rather layout requests being processed), which by default trickles down the child structure.

In other words: there is "no-one" calling the paint routine anymore.

Paul Mason