Form scaling issue on Chinese OS (96 dpi)
I have a sample .NET application which consists of 2 forms. I have used images and various controls over these forms. When I run this application under XP or Win 7 English version,开发者_StackOverflow中文版 it works fine. But, when I run this application under Chinese version OS, the form size changes. It increases the form size, causing distorted forms.
Is anybody aware of this issue? What can be done to resolve it?
I have tried various options. To resolve this problem we need to set Forms
AutoScaleMode
property to none. This resolves the problem for 96 dpi settings.
Set the following properties for the Windows Form:
- AutoScaleMode = None,
- AutoSize = True.
This will do it. Good Luck
精彩评论