Form.
You can use the AutoCenter property to specify whether a form will be centered automatically in the application window when the form is opened.
The AutoCenter property uses the following settings.
Setting | Description | Visual Basic |
Yes | The form will be centered automatically on opening. | True (-1) |
No | (Default) The form wont be centered automatically on opening. | False (0) |
You can set this property in the forms property sheet, a macro, or Visual Basic.
You can set this property only in Design view.
Depending on the size and placement of the application window, forms can appear off to one side of the application window, hiding part of the form. Centering the form automatically when its opened makes it easier to view and use.
Form Object.