WindowHeight and WindowWidth Properties

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top