RE: Size to Fit Form programmatically?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Docmd.movesize might solve the problem. It doesn't automatically
size-to-fit, but you can use it to always open a form to a specific size.

The following instructions were posted by fredg on 9/29/2006:

Look up the MoveSize method in VBA help.
Code it's Open event:

DoCmd.MoveSize L*1440, T*1440, W*1440, H*1440

Where W is the Width of the form (in inches) and H is the height of
the form (in inches).

L and T are the left and top position of the fom on the screen.

All measurements, however, are in Twips (1440 per inch), so that is
why the measurements are multiplied by 1440.

"Angela" wrote:

Is there a way to implement "size to fit form" programmatically? I have one
form that is sometimes opened without the form header visible. When that
happens, I need to resize the form to it doesn't look goofy.
.



Relevant Pages

  • Re: Changing Building Materials to Metric
    ... inches. ... It MUST fit the old pipe. ... being a real problem would be with liquid measurements. ... A 9/16 wrench will fit a 9/16 bolt the just as well as a 12 MM wrench ...
    (alt.home.repair)
  • Re: How much do spokes matter?
    ... It is not an inches versus a mm question. ... inches, foot, yard and miles for length measurements ie. ... Or do you know that by heart after ... Yes I do know the common bicycle ...
    (rec.bicycles.tech)
  • Re: Metric
    ... traditional imperial measurements are ... to human body parts. ... all those crazy measures like inches, hands, feet, cubits, yards, ... It's a lot easier to divide stuff in imperial measurements. ...
    (rec.woodworking)
  • Re: Metric
    ... traditional imperial measurements are ... to human body parts. ... all those crazy measures like inches, hands, feet, cubits, yards, ... It's a lot easier to divide stuff in imperial measurements. ...
    (rec.woodworking)
  • Re: Monitor Screwing still
    ... Then you have the way specific industries/situations use measurements ... think if I'm cutting wood for a door and I measure it as 44 inches ... I'm with Dave. ... Dave's monitor should be the size quoted. ...
    (comp.sys.acorn.misc)