Large Display Text Moving Controls
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.
精彩评论