I am developing a Windows Forms application using VS2008 on Windows Vista. I tried to run the application on Windows XP the other day, and everything in the GUI was corrupted. I realized that I developed the application using the 120 DPI setting in Windows Vista, and my XP was set to 96 dpi.
There are several UserControls in my application, and all of them are compressed even in Visual Studio itself if I change my DPI to 96. I am sure that many people use Visual Studio in high DPI these days. So, how can I make sure that my GUI is not confused in both Visual Studio and runtime?
EDIT: I read a couple of articles on this issue, and I found out that I have to set AutoScaleMode to None. However, this still does not prevent my shortcuts from adapting the new DPI settings set by the operating system. I need my labels not to grow / contract because other GUI elements have patch sizes.
user-interface dpi visual-studio winforms autoscalemode
Mert sevinΓ§
source share