开发者

Form scaling issue on Chinese OS (96 dpi)

开发者 https://www.devze.com 2022-12-19 07:09 出处:网络
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

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

精彩评论

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

关注公众号