C#WinForms弄乱了控制位置? [英] C# WinForms messed up control positions?
问题描述
我有这个正在运行的软件,目前大约有400人正在使用该软件。对于大多数人(对我来说)来说,它们看起来都不错,但有些用户报告这些控件看起来很怪异,混乱,位置类似...
I have this running software that is currently being used by about 400 people. To most of them (and to me) it all looks fine and dandy, but a couple of users have reported the controls looking weird, all messed-up, position-like...
你们知道任何可能导致此错误无法正常运行的错误或任何解决方案吗?
Do you guys know any errors that may be preventing this from working correctly or any solutions?
编辑: http://img52.imageshack.us/img52/6707/capturarvw.png
推荐答案
将表单的 AutoScaleMode
从 Font
更改为无
,并且表单不会响应DPI更改。
Change your form’s AutoScaleMode
from Font
to None
, and the form won’t respond to DPI changes.
当然,最好是适当地缩放。迫不及待,直到每个人都在使用使 not 很难做到的框架。就像WPF。
Of course it would be best if you could instead scale properly. Can’t wait till everyone’s using frameworks that make it hard not to do this. Like WPF.
这篇关于C#WinForms弄乱了控制位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!