SuspendLayout
/ResumeLayout
are typically used when you are adding controls to FlowLayoutPanel
and don't want layouting to occurs after each addition. It is suspended until you say resume (possibly even forcing it).
In your case, you already have collection of controls ready. Changing WrapContents
will cause layouting (obviously), but only once. There will be no gain from using SuspendLayout
/ResumeLayout
.
If you have layout not updated immediately after changing WrapContents
, then you forgot somewhere to call ResumeLayout
, it should be called same number of times as suspending.