Management size increases on Korean OS

I have a window shape that has a Label control specified with a fixed size. Autosize is true, and the maximum size contains the same width as the width of the control, so the control increases its height if necessary. This works fine on the English OS, but when it is deployed on the Korean OS, the width increases and crosses the maximum limit set on the form.

I played with Autoscalemode with all the values ​​- Font, DPI, None, Inherit, but didn't change anything. What could be wrong with this and how we can solve this problem.

+4
source share
2 answers

Yes, it is increasing and is actually well known (in some circles) for behavior. There is some problem with measuring the font (we’ll probably choose a replacement font instead).

Instead of setting the size to fixed, I would use the TableLayoutPanel as the layout manager for this control / form / independently and let it actually resize. You need to play a little with it, but from my experience an empty column of distance is added (provided that you have at least one percentage column). This is a bit complicated, but I managed to fix a similar defect in this way.

+1
source

I recently had this same problem and fixed it by programmatically setting the default Sans Serif font in the top-level main panel. Details of my answer (to my question) here:

https://superuser.com/questions/1093919/is-there-such-a-thing-as-korean-microsoft-windows-10-or-is-it-just-regular-win/1119806#1119806

0
source

Source: https://habr.com/ru/post/1335970/


All Articles