Resize a form based on subform visibility

I have a form with a subform on it. If there are no entries in the subform, this visible property is false. In this case, I want the outer shape to shrink, so that there is no large empty space where the subform is.

You can do this in a long way by setting a position for all the controls in the form based on the visibility of the subform. However, is there an easier way to do this (possibly with growth or can compress the property)?

+3
source share
1 answer

May grow / may contract, does not apply to forms. But to solve the super-pattern, try placing your subform in the footer of the main form. Then you can quickly make your footer visible or not depending on the contents of the subform.

+2
source

Source: https://habr.com/ru/post/1741956/


All Articles