Buttons are oversized on UHD laptop.

vito1010

Registered User.
Local time
Today, 08:46
Joined
Aug 14, 2014
Messages
34
I wrote the database on a PC with a regular display but when I run it on my laptop that's UHD (3200x1800, I think), the buttons are way bigger, but the active part is correct.
First link is the messed up version. The second link is the "correct" way (I changed most of the buttons to a simpler look. The "Find" button is the default).

http://www.cdphotography.com/55/tax02.png


http://www.cdphotography.com/55/tax01.png

Any help would be appreciated. I tried changing resolution and magnify percentages.
 
3 questions:
1. Is the form MAXIMISED on the screen?
2. Are you using code to automatically resize the form according to screen size/resolution?
3. What is the resolution and screen size on the PC used for design?
 
1. Yes. It starts a little less then maximized then I make it so. But the overstuffed buttons are there before I do anything.
2. No
3. 1366*768
 
Some suggestions - number 3 is the most likely cause & solution

1. Try disabling DoCmd.Maximize. Do they still over enlarge?

2. Try moving DoCmd.Maximize to first item in Form_Open event

3. Did you create the form using the wizard - that is, you selected a Table or Query, then clicked Create - Forms - Form? If so, then your form was created with the Layout methodology, and that can cause some odd behavior when working in Design view. Most experienced devs remove the layout. If you want to do that. select the "table" holding all of your controls, and then in the Form Design Tools ribbon click Arrange - Table - Remove Layout. This will remove the "table", but will leave your controls and such on the form, and you should be able to arrange and size your controls as desired.

You can also right-click on the table layout, and select Layout - Remove Layout

4. If none of the above help, I asked about form resizing code because using it might surprisingly fix your problem
 
Only for testing if you still have the problem, (then the layouts can sometimes be hard to get rid of).
Create a new form without using the wizard, place a text control and a button in it, does that looks okay on the laptop?
 
Some suggestions - number 3 is the most likely cause & solution


3. Did you create the form using the wizard - that is, you selected a Table or Query, then clicked Create - Forms - Form? If so, then your form was created with the Layout methodology, and that can cause some odd behavior when working in Design view. Most experienced devs remove the layout. If you want to do that. select the "table" holding all of your controls, and then in the Form Design Tools ribbon click Arrange - Table - Remove Layout. This will remove the "table", but will leave your controls and such on the form, and you should be able to arrange and size your controls as desired.

You can also right-click on the table layout, and select Layout - Remove Layout

4. If none of the above help, I asked about form resizing code because using it might surprisingly fix your problem

I went thru this step (#3) and there was no layouts (the "Remove Layouts" choice was grayed out and I could choose Stacked or Tabular.
How do I do #4?
 
Only for testing if you still have the problem, (then the layouts can sometimes be hard to get rid of).
Create a new form without using the wizard, place a text control and a button in it, does that looks okay on the laptop?

I created a quick form manually (no wizard) with 2 fields and a button.

1. When I first open the form, I see this:
http://www.cdphotography.com/55/t12.png

2. If I click on it, I see this:
http://www.cdphotography.com/55/t22.png

3. If I look at it in design view and select the button, I see this:
http://www.cdphotography.com/55/t32.png

Does this help?

ViTo
 
You might check the settings of the laptop

Control panel, all control panels, display
and see if this one is on medium of large...
 
I created a quick form manually (no wizard) with 2 fields and a button.

Does this help?

ViTo
It doesn't look right, (I suppose it looks okay on the computer and that the screen shoots is from the laptop).
Could you post a MS-Access database with the above form in it.

Edit: I've attached a database with a form try it, does it look okay on both computers?
 

Attachments

Last edited:

Users who are viewing this thread

Back
Top Bottom