2
Answers

Autosize usercontrol width into flowlaoutpanel C#

Abdu Abdul

Abdu Abdul

3y
2.1k
1

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)