Manage layout of a list of controls that change in size

I'm displaying a number of controls (all the same custom type) that can change their height in response to user input. The controls are being placed on a panel that's configured to automatically create a scrollbar if needed. The controls are arranged as a single column list.

What's the best way to reposition them when something changes in height? Can I set something in the designer to do this automatically, or will I have to manually move all controls below the one that's size changes manually?

Upvotes: 1

Views: 648

Answers (1)

Gareth
Gareth

Reputation: 2791

I suspect using a FlowLayoutPanel instead of a regular panel and refreshing after the child control changes height should do the trick.

Upvotes: 1

Related Questions