C# Winform 尺寸因分辨率降低而减小
我有一个非常简单的使用 .net Framework 2.0 的 C# 应用程序。在我的开发机器(设置为 1024x768)中,应用程序看起来很好。客户端在 1024x600 上网本上运行该应用程序,并且窗体看起来高度降低了。
http://dl .dropbox.com/u/381953/Screen%20shot%202010-11-01%20at%204.51.01%20PM.png
我尝试在VMWare中模拟环境,在1004x601分辨率下应用程序看起来仍然不错。
我是否缺少某些东西会导致窗户高度降低?
I have a pretty simple c# application that uses .net framework 2.0. In my development machine (which is set to 1024x768) the app appears fine. The client runs the application in 1024x600 netbook, and the form seems like it's reduced in height.
http://dl.dropbox.com/u/381953/Screen%20shot%202010-11-01%20at%204.51.01%20PM.png
I tried to simulate the environment in VMWare, under 1004x601 resolution the app still looks fine.
Is there something I'm missing that would cause the window hight to be reduced?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许不是窗口被缩小了:看看系统的字体大小,以及所有的主题系统......
你能发布原始窗口的打印屏幕吗?
请问您能重新发布 1:1 比例的图片吗?
Maybe it's not the windows who is reduced: take a look with the font size of the system, and all the theming system...
Can you post a print screen of the original window please ?
And please, can you repost you picture with 1:1 scale ?
将窗体和任何自定义用户控件上的
AutoScaleMode
属性设置为None
。默认设置为字体
。Set the
AutoScaleMode
property on the form and on any custom user control toNone
. Default is set toFont
.