Adjust dialog so that the height of the main FlowLayoutPanel is the right value to contain the displayed controls. A better solution will be to fix Mono FlowLayoutPanel to not include non-Visible controls in the FlowLayoutPanel height calculation, if that is what it is doing when it AutoSizes.