Dear reader,
I have a form that has several controls:
ProgressBarat the top of the form (docked)- A
TabControlat the top of the form (also docked but underneath the progress bar) Buttons,TextBoxesandlabelsinsideTabPagesof theTabControlFlowLayoutPanelat the bottom of the screen (docked) with a few buttons in itLabelat the bottom of the form to act as separator (also docked, but above theFlowLayoutPanel)
I am trying to auto size the form to fit its content. What needs to happen is:
- Tab pages wrap around its content
- Tab control wraps around the largest tab page
- The form wraps around the tab control, progress bar and buttons.
Here's an example of how the form looks without AutoSizeMode set to GrowAndShrink (just Grow):
And this is how it looks with AutoSizeMode set to GrowAndShrink:

Please advise.