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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set dialog window size

Status
Not open for further replies.

mickeyg

Technical User
Mar 30, 2001
120
US
How can I set a window to always open to a certain size (three inches by four inches for example)?

Thanks,
Mickey
 
Hi Mickey,
It's friday so I "borrowed" this from Access help(F1) :)
MoveSize Method
The MoveSize method carries out the MoveSize action in Visual Basic. For more information on how the action and its arguments work, see the action topic.

Syntax
DoCmd.MoveSize [ right ][ , down ][ , width ][ , height ]
The MoveSize method has the following arguments.
Argument Description
right A numeric expression.
down A numeric expression.
width A numeric expression.
height A numeric expression.

You must include at least one argument for the MoveSize method. If you leave an argument blank, the current setting for the window is used.
You can leave an optional argument blank in the middle of the syntax, but you must include the argument's comma. If you leave one or more trailing arguments blank, don't use a comma following the last argument you specify.

The units for the arguments are twips. (567/centimeter or 1440/inch.) ;-) Gord
ghubbell@total.net
 
Thanks Gord!
That did the trick.

Mickey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top