i can suggest two options:
1. use
SuspendLayout
and
ResumeLayout
methods
flowPanel.SuspendLayout();
flowPanel.Controls.Clear();
flowPanel.ResumeLayout();
2. remove current flowPanel and create a new one with the same properties
this.SuspendLayout();
this.Controls.Remove(flowPanel);
var fp = new FlowLayoutPanel();
fp.Location = new Point(100,10);
fp.Size = new Size(200,200);
this.Controls.Add(fp);
this.ResumeLayout();