Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resize form through code

Status
Not open for further replies.

TTThio

Programmer
May 3, 2001
185
US
Hello there,

I've been trying to surf the online access resources, but somehow I couldn't find the answer.

Well, I'd like to resize my form to show half-size on opening and to drop down the rest upon clicking a button.

Cannot do it through frm.windowheight property (read-only),
didn't work either using frm.section(index).height.

Is there another way to do this?

Thanks ahead,
Tin Tin
 
Hi, Tin Tin!

Use the command MoveSize.
e.g.
DoCmd.MoveSize , , 21 * 567

Aivars
 
Hi Aivars,

I did try to use this method. Yet, even though it worked, my first text box which is on the top of the form is cut a little bit.

I tried to set a page header and move the text box to lower position, and it did go down, not sticked to the form top border, but still the text box is not fully displayed.

Any idea?

Thanks,
Tin Tin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top