I have a form with the property AutoSize = True , and two GroupBox one in the middle and another in the footer. There is a function that makes the GroupBox below invisible if it is visible and vice versa, and since the AutoSize property of the Form is equal to True it auto adjusts and only displays the area where the GroupBox in the middle is found if the GroupBox the footer is invisible ( Visible = False ) and returns to show if it is visible again ( Visible = True ).
So far so good.
But if I set the GroupBox property that is in the footer as AlBottom this does not occur.
The Form starts with the GroupBox 2 appearing, when I change the GroupBox's Visible property from the footer to False it disappears and the form auto adjusts, however if I change the Visible property to True nothing happens . The Form does not auto fit to display the GroupBox's footer.
If the form's AutoSize equals False everything happens normally .
Is there any way to work around this problem without changing the AutoSize property of the form to False and without changing the GroupBox Align property of the footer to AlCustom?