473,666 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

center a form on display

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
Jan 12 '06 #1
3 24366
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
MS Access MVP
<je*********@pi oneer.com> wrote in message
news:0u******** *************** *********@4ax.c om...
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

Jan 12 '06 #2
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
On Thu, 12 Jan 2006 15:55:32 GMT, "Wayne Morgan"
<co************ *************** @hotmail.com> wrote:
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.


Jan 12 '06 #3
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.

--
Wayne Morgan
MS Access MVP
<je*********@pi oneer.com> wrote in message
news:n0******** *************** *********@4ax.c om...
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
On Thu, 12 Jan 2006 15:55:32 GMT, "Wayne Morgan"
<co************ *************** @hotmail.com> wrote:
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.

Jan 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1595
by: BobbyChat | last post by:
Is there a way to display more than one record at a time on a popup form? I have a main form that has a button that triggers a popup form that is a continuous form. I am trying to get it to display multiple records on the form. Does anyone know of a way to do this. Must be missing something obvious - but can't get it to work no matter what combination of property settings is used for both the pop up formitself and the detail section of...
1
5216
by: Robert | last post by:
Need some help with this please. Is there a way to display more than one record at a time on a popup form? I have a main form that has a button that triggers a popup form that is a continuous form displaying varying numbers of records depending on the crietria selected on the main form. Must be missing something obvious - but can't get it to work no matter what combination of property settings is used for both the pop up form itself...
1
1823
by: Johnfcf | last post by:
I have a database consisting of 3 tables, the main table with main contact info, a second table with additional address info and a third table consisting of additional contact information, or more specifically 'other names sometimes used to identify the main contact person'. I have related the tables, the main contact info table being the main table on the one side, and the other two tables hold additonal data and are on the many side.
2
9530
by: cashdeskmac | last post by:
I have an application with a main form (size 300, 200) and I added another form to the project. I would like to set the second form to center on the main form. I have tried setting the parent of the second form to be the first form using: this.Parent = Form1; (both with and without the ( )) but that doesn't work, otherwise I could set the CentreParent property for Form2. I also tried adding the following to the constructor of Form1:
6
2430
by: dale zhang | last post by:
Hi, I build a web form with a 4-cell table on the top (flawlayout), followed by some labels and textboxes (gridlayout). The web form is displayed well in dell m60 laptop with all resolution options and DPI options. However when I tried to run it in a dell P3 desktop, labels and textboxes overlapped each other and they were in table area too. Any suggestions? Do I have to put all controls in table cells?
3
1179
by: gv | last post by:
Hello all, I'm calling a form class that just shows a status display of where the application is at . I pass in text to display. I would like to keep that instance of the class form centered in the main forms application if the user moves the main form? thanks for you help GV
1
1738
by: ewart strain | last post by:
Hello all, I have a form thats tied to my access database and all seems to work well except for one small thing. Info on the code: whenever a consultant contract ends they get moved to an archive table, the form display three set of archive info (RDR, LBM, GSM). RDR= consultant personal info LBM= location info GSM= business info
1
5437
by: Gail248 | last post by:
In vb.net when I open a form, is there a property or something that will have it open smack center of the screen?
1
3945
by: William Gill | last post by:
I hope I can state this clearly enough. I am redoing some of my html(php) forms. I'm trying to break things into three functions on a self processing php page: 1) show the form (and populate fields if there were errors) 2) validate form data 3) process form data 2 and 3 are no problem, but 1 is. The page with the form displayed should validate as html 4.01 strict (actually all iterations of the page
1
2622
by: jeddiki | last post by:
Hello, I have made a nice opt-in form and tested it in Moz FF and it looks fine. But in IE the elements don't line up properly. I think I am nearly there but can not get these elements straight - can you see what I have missed ?
0
8444
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.