Abdu Abdul

Abdu Abdul

  • 1.2k
  • 409
  • 13.4k

Autosize usercontrol width into flowlaoutpanel C#

Nov 9 2021 11:28 PM

I created a User control which I load on FlowLayoutPanel. it works fine, but the problem is when I resize it(Maximize) it doesn't change it size, it remain normal the way the initial size was, even after docking the user control to parent control. Please help out.
I dock the FlowLayoutPanel on TableLayouPanel to enable the autosize of the User Control.

this.Width = this.Parent.Width;
this.Dock = DockStyle.Fill;


Answers (2)