Windows窗体解析问题 [英] Windows Forms resolution problem

查看:76
本文介绍了Windows窗体解析问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows窗体中开发了一个1024 * 780分辨率的屏幕,但有人说它在较高的分辨率下不适合.有什么办法可以解决这个问题?

I have developed a 1024 *780 resolution screen in Windows Forms, but some say that it does not fit properly at higher resolutions. Is there any way to handle this?

有没有一种方法可以使Windows Forms应用程序在所有分辨率下看起来都一样?

Is there a way to make Windows Forms applications look the same at ALL resolutions?

推荐答案

我的建议不是要在所有屏幕上使其看起来都一样",而是要设计GU​​I以便它可以更顺畅地缩放.在Winforms中,布局管理器,对接和锚点是您的朋友. TableLayoutPanel对于此类事情非常有用.拆分器也有帮助...

My recommendation is not so much to "make it look the same" on all screens, but rather to design the GUI so it scales up and down more gracefully. Layout managers, docking, and anchors are your friends in Winforms. The TableLayoutPanel is quite useful for this sort of thing. Splitters also help...

最后,这是WPF着手解决的那些问题之一. WPF广泛使用布局管理器.感觉比Winforms甚至VB(老式VB)更像Java或GTK.

Finally, this is one of those problems that WPF sets out to solve. WPF makes extensive use of layout managers. It feels much more like Java or GTK than Winforms or even VB (old school VB).

这篇关于Windows窗体解析问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆