Author: Peter Schroeder
This example (A2K format) contains a module that can be used to reliably center (both horizontally and vertically) a form in the Access Window. There is a very simple demo of how it works, as well. The module itself uses Windows API calls to determine the Access application client area and the dimensions of the form in question, and calculates what the TOP and LEFT settings of the form should be to be centered in the Access window.
To use, simply insert the entire modCenterForm into your own database. It is called as follows:
Code:
Call gfncCenterForm([form])