WindowHeight and WindowWidth Properties

T

twen

Is it possible to programmatically set WindowWidth and WindowHeight
properties on a form when it is loaded based on what I have appearing?
I know the values that I want to set each for, but when I try to set them it
says that the property is Read-Only.
Here's the situation, I have a sub-report which contains a secondary address
for a contact. Some contacts only have a primary, and when the contact does
not have a secondary I do not want the form to be blown up without any data
in the secondary address subform. So is there any way to set the windowheight
and windowwidth properties programmatically? Or any other solutions to that
kind of problem?
Thanks
 
M

Marshall Barton

twen said:
Is it possible to programmatically set WindowWidth and WindowHeight
properties on a form when it is loaded based on what I have appearing?
I know the values that I want to set each for, but when I try to set them it
says that the property is Read-Only.
Here's the situation, I have a sub-report which contains a secondary address
for a contact. Some contacts only have a primary, and when the contact does
not have a secondary I do not want the form to be blown up without any data
in the secondary address subform. So is there any way to set the windowheight
and windowwidth properties programmatically? Or any other solutions to that
kind of problem?


Are you asing about a form or report?

On a form, you can use the InsideHeight and InsideWidth
property to change the size of the form.

On a report, you want an individual text box (and its
section?) to Grow or Shrink.
 
T

twen

No I wanted to adjust how the form would appear visually like the actual
window of the form. I figured it out though by using MoveSize Height: =
But, Thank you.
 
Top