Can't find any information about this. My controls are rendering extremely slow and I noticed I'm not calling SuspendLayout
when doing major updates.
What I'm in doubt is, since the top level control contains controls which contain other controls and so on, will calling SuspendLayout
on my top control also suspend layout for every nested control or do I need to call it for each of them?
Take a look at this MSDN article - Practical Tips For Boosting The Performance Of Windows Forms Apps.
Text from article : Remember that SuspendLayout only prevents Layout events from being performed for that particular control. If controls are added to a panel, for example, SuspendLayout and ResumeLayout must be called for the panel and not for the parent form.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With