开发者

Large Display Text Moving Controls

开发者 https://www.devze.com 2023-03-27 03:44 出处:网络
I\'m working on a .Net Windows application. All the controls arrange fine, but when the user specifies their Windows display text to be larger than the Windows 7 default of \'Smaller\', the controls g

I'm working on a .Net Windows application. All the controls arrange fine, but when the user specifies their Windows display text to be larger than the Windows 7 default of 'Smaller', the controls get moved around on the form and makes it unusab开发者_如何学Cle.

Is there a way to lock down those controls no matter what the display text setting is at?


The solution to your problem is to use WPF as this is resolution independent.

Your workaround to the problem is to test your app in various different configurations of text size and screen resolution and put enough space around everything in standard size so that it still fits when the user resizes.


There are many things other than font sizes that can move your controls around. If something is moving your controls around, it is because it is necessary to read or display the text, "locking down" the controls will not help.

You have to write your app so it takes control sizes into account. There is another SO question that explains this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号