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!

Changing size of form at runtime.

Status
Not open for further replies.

grnzbra

Programmer
Mar 12, 2002
1,273
US
When one opens a form in design mode and it is not maximized, one sees a window and inside sees the form of a certain size. When one checks the properties, the Width property applies to the inside property, not to the size of the window.

I am adding controls to a form at runtime and the inside width will expand to allow all the controls to appear where I have placed them (left, top, width properties). However, the windo does not expand and when it opens, the right hand column of controls is cut off.

I have tried setting the Sizable proprty to YES and I have tried setting the BoarderType property to SIZABLE. But it still doesn't work.

Is there any way in VBA to control the size of the window. (I need to be able to have the size change because I won't know how many controls I'll have until runtime.)
 
Have you tried the DoCmd.MoveSize method ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top