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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.