473,836 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I center Access 2007 switchboard opened to full screen?

26 New Member
I am creating a database in Access 2007 for multiple users, some with very limited experience with access. I am using a customized switchboard to make it more user-friendly.

I have the switchboard opening to full screen (covers all of the access window) and it is centered on my laptop but when I open the database on a different computer, different monitor size and resolution, it is not centered.

Is there anyway to have the switchboard centered, no matter the monitor size/resolution when opening to full screen?
Oct 6 '11
28 11947
ADezii
8,834 Recognized Expert Expert
@JAGster:
  1. To perfect Scaling, you must know specific information regarding the Screen Resolution that is active at the time you created the Form and its Controls. This info is used to create specific Ratios for Scaling all Objects. The info needed is:
    1. Horizontal Screen Resolution in Pixels
    2. Vertical Screen Resolution in Pixels
    3. Logical Dots/Inch X
    4. Logical Dots/Inch Y
  2. Download the Attachment that I have provided for you and Open frmScreenInfo. All the information that you need for proper Scaling is generated within. Copy the Call to the SetDesignCoords () Method generated at the bottom of the Screen, it will look something like this:
    Expand|Select|Wrap|Line Numbers
    1. Call frmResize.SetDesignCoords(1152, 830, 96, 96)
  3. Paste this Method Call and overwrite the comparable Line in the Load() Event of frmCentered (Line #9).
    Expand|Select|Wrap|Line Numbers
    1. Private Sub Form_Open(Cancel As Integer)
    2. 'Instantiate the Class to handle all resizing.
    3. Set mfr = New FormResize
    4.  
    5. 'Tell the new Object what form you want it to work with.
    6. Set mfr.Form = Me
    7.  
    8. 'For 1152 x 864 Screen Resolution at the Kimmel Center
    9. Call mfr.SetDesignCoords(1152, 830, 96, 96)
    10.  
    11. 'Set certain Properties
    12. With mfr
    13.   .ScaleForm = False
    14.   .ScaleColumns = True
    15.   .ScaleFonts = True
    16.   .ScaleControls = scYes
    17. End With
    18. End Sub
  4. Open Demo.mdb in any Screen Resolution. You should find that the Form covers the entire Screen and Scales all Controls/Fonts/Columns accordingly in any Screen Resolution, making it truly independent.
  5. If this actually works, I'll tell you what to do to incorporate this into your Database.
Attached Files
File Type: zip Centered.zip (330.1 KB, 326 views)
Oct 10 '11 #21
JAGster
26 New Member
ADezii,

After pasting the resolution information from the frmScreenInfo Call frmResize.SetDe signCoords(1280 , 772, 96, 96)

I got compile error "variable not defined" and showing frmResize highlighted, when I tried to open the frmCentered.
Oct 10 '11 #22
ADezii
8,834 Recognized Expert Expert
Try Call mfr.SetDesignCo ords(1280, 772, 96, 96) first,

then

Paste mfr.SetDesignCo ords(1280, 772, 96, 96) over the corresponding Line in the Open() Event of frmCentered in the Demo Database, not yours. Test the Demo at various Resolutions. If this works, then we can migrate to your DB. If you are still having trouble, I can modify the Demo at this end, then Upload the Revision to you for testing.
Oct 10 '11 #23
JAGster
26 New Member
It appears to be working. One questions regarding scaling. One monitor I am using is set at resolution 1280x772 (the display settings say 1280x800). The other one 1024x768. When I opened frmCenter on the second one the layout looks exactly the same as on the first one, but the picture of the globe is taller and narrower. Is this because of the scaling from the first resolution to the other?
Oct 10 '11 #24
ADezii
8,834 Recognized Expert Expert
Is this because of the scaling from the first resolution to the other?
I would image so.

Don't forget that mfr.SetDesignCo ords(1280, 772, 96, 96) must correspond to the Screen Data where the Form was created.

Test at various Resolutions, and try substituting the reported resolution instead of the actual ==> mfr.SetDesignCo ords(1280, 800, 96, 96)
Oct 10 '11 #25
JAGster
26 New Member
I've tested on a number of different resolutions and it does work on all of them. So, I'm now ready migrate it to my database.
Oct 14 '11 #26
ADezii
8,834 Recognized Expert Expert
  1. The vast majority of the Code is encapsulated within 3 Class Modules, Import them into your DB from the Demo. The Class Modules are: ControlResize, FormResize, and SectionResize.
  2. In the Declarations Section of your Form's Code Module, place the following Declaration which will Declare a variable to represent a New Instance of the Class.
    Expand|Select|Wrap|Line Numbers
    1. Private mfr As FormResize
  3. In the Open() Event of the Form, Copy-N-paste the Code in the Demo's Form Open() Event to your Form:
    Expand|Select|Wrap|Line Numbers
    1. Private Sub Form_Open(Cancel As Integer)
    2. 'Instantiate the Class to handle all resizing.
    3. Set mfr = New FormResize
    4.  
    5. 'Tell the new Object what form you want it to work with.
    6. Set mfr.Form = Me
    7.  
    8. 'For JAGster's Screen, Form Developement, Resolution 
    9. Call mfr.SetDesignCoords(1280, 772, 96, 96)
    10.  
    11. 'Set certain Properties
    12. With mfr
    13.   .ScaleForm = False
    14.   .ScaleColumns = True
    15.   .ScaleFonts = True
    16.   .ScaleControls = scYes
    17. End With
    18. End Sub
Oct 14 '11 #27
JAGster
26 New Member
It works!

ADezii, Thanks for all the help! Very much appreciated.
Oct 14 '11 #28
ADezii
8,834 Recognized Expert Expert
Glad it all worked out for you.
Oct 15 '11 #29

Sign in to post your reply or Sign up for a free account.

Similar topics

27
45580
by: Wayne | last post by:
I've been clicking around Access 2007 Beta 2 and can't see the custom menu bar designer. Is it in the beta? Maybe I'm blind. The question that comes to mind is: Will custom menu bars be the same height as they were in previous versions or will they be the "ribbon" style that takes up a huge portion of the screen? Also when I use Access 2007 to open an Access 2003 database that has custom menu bars they display as they did in Access...
2
6277
by: Wayne | last post by:
I've been having a click around Access 2007 this afternoon and have discovered some things that range from annoying to alarming. My Access 2003 menu bars, which I, like many others, use extensively, are now hidden behind an "Add Ins" tab on the Ribbon. Hardly an intuitive place for a user to find them. Unless my memory is failing me, I'm sure that Access 2003 menus displayed normally in the 2007 Beta. The other thing I've discovered...
4
5488
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available in versions 3.0 or later of the class. However, also just found out that the new Rich Text property in Access 2007 ALSO does not support full text justification! This seems incredible, that MS would create a brand new application, and not...
16
11141
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might know one way or the other whether that was true or not, or could point me to an article or help text that would. What I have seen so far online and in Access 2007 help seems to confirm the above. But that (or at least (b)) seems incredible that it...
5
31400
by: Rocky | last post by:
My Access 2007 file fails to open on a machine with the 2007 Access runtime version installed. It comes up with a Security alert message. Is there a security setting in the Access Database that needs to be enabled to run the code and macros?
7
10045
by: martin DH | last post by:
A user of a database received this error when attempting to open the database on a new computer. The Access database was built in Access 2003 and is being opened in Access 2007. The database is set to open a switchboard on startup. "The expression on Open you entered as the event property setting produced the following error: Object or class does not support the set of events." It's opened on at least one new computer with Access 2007...
0
1800
by: newwin | last post by:
How i create a popup menu on switchboard form, like on switchboard form, when user clicks the button a popup menu is displayed then user can selects one of them using access 2007. Please tell me, the steps.
9
4502
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd like to know is the stability, speed & ease of use of both the products. I believe Access 2007 has a new file format too and that it may be slower.
1
4722
by: ARC | last post by:
I think I made a major blunder, and now Access 2007 no longer opens. I made the mistake yesterday of using the "test" option in wise installer for my Access 2007 runtime app. It actually installed the Access 2007 Runtime SP-1 (I did have full office 2007 SP-1, however). I didn't notice a problem until I had to use Access 97. Once I re-opened Access 2007, I got the usual message about the Installer (as it tries to repair every time you...
7
3367
by: Robert S. | last post by:
Searching some time now for documents on this but still did not find anything about it: Is it possible to replace the entry screen of MS Office Access 2007 - that one presenting that default 'templates' (with that big graphic buttons) - with some sort of own HTML-Page? I could imagine, that somehow it is possible to change this construction (hopefully not hardcoded in MS-Acc07), like it is possible to edit the 'Fluent Ribbon'? If so...
0
10832
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10248
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
9367
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
7782
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...
0
6976
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5645
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5815
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3108
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.