VBA Userform: Text of same font size changes size based on Top property

笑着哭i 提交于 2020-08-08 07:45:43

问题


I have a userform. In multiple cases across several different controls, I have observed the objects with the same Width, Height, Font, and Font Size display different font sizes depending on where they are placed on my userform.

. . . .

Above is an example of this. The two textbox's are both 26H and 48W, with a Left of 90. Both have font Tahoma Regular size 18. The only difference between them is their Top property. And yet visually, the upper one has much wider text than the lower one. The picture on the right has added dots to prove this is not an optical illusion. The upper one can only fit one dot between the letter and the edge. The lower one can fit at least two dots between the letter and the edge.

Can anyone explain why this is happening? What is happening? Or how I could stop it from happening?

来源:https://stackoverflow.com/questions/47061431/vba-userform-text-of-same-font-size-changes-size-based-on-top-property

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!