Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / January 2006

Tip: Looking for answers? Try searching our database.

center a form on display

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jerry.ranch@pioneer.com - 12 Jan 2006 15:39 GMT
Hi
I'm trying to figure out how to center forms on a page
I have a form built with some tabbed pages, and I'm playing with the
form properties, but it always displays top and left and not centered
Thanks
Jerry
Wayne Morgan - 12 Jan 2006 15:55 GMT
Have you set AutoCenter to Yes? Does it do this only as you go from Design
view to Form view or does it also do this when you open the form in form
view to start with? Some things such as AutoResize and AutoCenter don't work
when you go from Design view to Form view.

Signature

Wayne Morgan
MS Access MVP

> Hi
> I'm trying to figure out how to center forms on a page
> I have a form built with some tabbed pages, and I'm playing with the
> form properties, but it always displays top and left and not centered
> Thanks
> Jerry
jerry.ranch@pioneer.com - 12 Jan 2006 16:18 GMT
Wayne

Autocenter is set to yes
I've gone out of the database and gone back in, and it still doesn't
center

It take up about 1/3 of the upperleft hand screen

I think its the min max button I left in.  I think it wasn't centering
because it was opening maximized.  Make sense?

I took those out and now it centers.  Is this the correct way to
accomplish this?

Thanks
Jerry

>Have you set AutoCenter to Yes? Does it do this only as you go from Design
>view to Form view or does it also do this when you open the form in form
>view to start with? Some things such as AutoResize and AutoCenter don't work
>when you go from Design view to Form view.
Wayne Morgan - 12 Jan 2006 19:00 GMT
If it is opening maximized, it will fill the full screen within the Access
window. If the form isn't large enough to fill all of that area, you're
correct, it will fit itself into the top, left of its maximized window and
leave the rest of the area blank. The problem is that the form is the entire
maximized window but you only have enough controls and form sections to fill
the portion you mention. It would be possible to get the form to expand its
"background" to fill the full window, but that would still leave a lot of
blank area, it would just be form background now instead of the empty area
you have now. Another option is the scale all controls on the form to get
larger as you maximize the form so that they continue to fill the same
percentage of the form area. This can get complicated.

If you want to run the form maximized in the Access window, but don't need
all the space that that offers, you may want to reduce the size of the
Access window itself. The form will only maximize within the available space
in the Access window. As you move to larger and higher resolution monitors,
this will become more of a problem. I run a high resolution monitor and
absolutely hate when some programmer thinks I need to run everything
maximized. I don't and won't, so don't maximize it for me. All that does is
make me click the restore button to undo what you did. I run the high
resolution so that I can have multiple windows open without them
overlapping, don't steal the screen from me.

Signature

Wayne Morgan
MS Access MVP

> Wayne
>
[quoted text clipped - 18 lines]
>>work
>>when you go from Design view to Form view.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.