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

Centering Window

Status
Not open for further replies.

pcsmurf

IS-IT--Management
Apr 26, 2002
47
GB
I am using Access 97 and my form settings are set so that the auto centre window value is set to Yes. Despite this setting the form still insists in opening up in the position I have it in design mode.

Am I misunderstanding this option is there other settings I need to check in order to get the form to open in the centre of the main Access window ?
 
Hi

Other than the subtle difference or wording ie "Application Window", rather than just Window, it would appear you have it right:

AutoCenter Property


You can use the AutoCenter property to specify whether a form will be centered automatically in the application window when the form is opened.

Setting

The AutoCenter property uses the following settings.

Setting Visual Basic Description
Yes True (–1) The form will be centered automatically on opening.
No False (0) (Default) The form's upper-left corner will be in the same location as when the form was last saved.


You can set this property by using the form's property sheet, a macro, or Visual Basic.

You can set this property only in Design view.

Remarks

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 it's opened makes it easier to view and use.

If you make any changes in Design view to a form whose AutoResize property is set to No and whose AutoCenter property is set to Yes, you should switch to Form view before saving the form. If you don't, Microsoft Access clips the form on the right and bottom edges the next time you open the form


Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top