Enlarging a sub-Form in Form View

  • Thread starter Thread starter Burt Rosner
  • Start date Start date
B

Burt Rosner

To Anyone That Can Help,

Hopefully, I can explain this clearly.

I have a Form, lets say it's dimensions are 3" X 3".
Within the Form I have a sub-Form, lets say it's 1" X 1".
When I click on the maximize button of the Form, the sub-
Form stays the original size (1" X 1").

Is there anyway I can get the sub_Form to "grow" in
proportion to the size of the Form??

Thanks inadvance for any help,

Burt
 
Burt said:
I have a Form, lets say it's dimensions are 3" X 3".
Within the Form I have a sub-Form, lets say it's 1" X 1".
When I click on the maximize button of the Form, the sub-
Form stays the original size (1" X 1").

Is there anyway I can get the sub_Form to "grow" in
proportion to the size of the Form??


This depends on the details of what you're doing (e.g. which
section the sunform is in). In the detail section (which is
all available space after the header/footer are displayed),
you can use the main form's InsideHeight/InsideWidth to
determine the dimensions of the main form.

Use the main form's Resize event to run code that calculates
the desired size of the subform control and set its
Height/Width properties. Be careful that the subform
control's Top + Height is not greater than the main form
detail section's Height (same for width).
 
Marshall,

Thanks.

I was looking at that, but wasn't sure I was looking at
the right thing. It works great.

Burt
 
Back
Top