UF Control Font size irregularities

MPW

Well-known Member
Joined
Oct 7, 2009
Messages
571
Office Version
  1. 365
Platform
  1. Windows
I have noticed for quite some time that some labels do not display the same even though all the properties are the same. ie content, height, width, font name, font size.
Here is an example:

1667406716130.png
1667407538475.png

Same content, same everything except top property of course.

I have battled with this many times without success. Wondering if it is just another MS feature I have to deal with.

I did notice that if I set all of these properties at real time when the form loads than they appear identical.

1667407469953.png


I would hate for this to be the only answer. Is there a better way?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Not sure I understand. The design view shows 2 different widths in the text, so some property must be different? I have never seen this but if you're sure everything is the same then perhaps one of them is corrupted.
 
Upvote 0
My guess... your Labels are not the same size and you have the AutoSize property on at least one of them set to True.
 
Upvote 0
Good guess, but untrue. Autofit is definitely off. I even checked it again to be sure. As I stated, all of the properties were the same.
However, that was a good question and a piece of info I should have included in my initial post.

In addition 2 other labels had a similar thing going on.
I tried to
  • increase the label size
  • increase/decrease font size
  • increase the frame size
all to no avail.
What does work is to loop through all of the labels and set all of the properties as the form loads. As you can see in the last picture, this made them match.
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,036
Members
449,062
Latest member
mike575

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top