Dear reader,
I have a form that has several controls:
ProgressBar
at the top of the form (docked)- A
TabControl
at the top of the form (also docked but underneath the progress bar) Buttons
,TextBoxes
andlabels
insideTabPages
of theTabControl
FlowLayoutPanel
at the bottom of the screen (docked) with a few buttons in itLabel
at 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.