开发者

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:

  1. AutoScaleMode = None,
  2. AutoSize = True.

This will do it. Good Luck

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜