Maybe place your user controls inside a FlowLayoutPanel, having FlowDirection: TopDown, WrapContents: False, AutoScroll: True. Then the user controls will be automatically arranged.
Rearrange the Usercontrol position in panel
PARTH DESAI
61
Reputation points
Hello,
I have a Usercontrol with a panel and textboxes in it. I can change the height of a panel from button present in usercontrol.
This created usercontrol is then used in a from application inside a form panel multiple times one below the other.
When I run my form application and click on button present over user control It changes its own usercontrol height
but it keeps the gap and space as it is in form panel.
I want to rearrange and make it behave similar to expand and collapse.
Developer technologies | C#
11,579 questions