I do not know in designing forms I set objects in center of and set the properity to auto center, but in form view when maximize the form objects go to the top left of the form, Can anyone help me,Please?
相关问题
- Forms GotFocus event does not seem to fire
- Making a hidden form visible again in Access 2007
- Share a mdb file over network, for many computers,
- Using Microsoft Access as a front-end to a MySQL d
- Retrieve list of indexes in an Access database
相关文章
- CurrentDb.RecordsAffected returns 0. Why?
- Compiling an Access 2007 accdb into accde
- Access database sharing strategies
- How do you dynamically create controls on a MS Acc
- Select column names in a table using PyODBC
- Error 3622 - You must use the dbSeeChanges option
- Programmatically change the connection of a linked
- Is it possible to prevent MS Access from changing
Access forms have an
On Resize
event where you can adjust the horizontal location of various controls on the form by manipulating their.Left
properties based on the.Width
properties of the form itself.For example, say I have a form with a Command Button named
Button0
. To keep it (more or less) centered horizontally when the window is resized, I can use the following code in the Form'sOn Resize
event:Note:
For Access 2007 and later you could also use control layouts. For details on how to use them for centering, see the related question here:
How to Dynamically keep controls centered (relative position) on an MS Access form?