vb.net 2010表单以不同的分辨率调整大小 [英] vb.net 2010 form resize in different resolution

查看:150
本文介绍了vb.net 2010表单以不同的分辨率调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我可以知道如何在另一台具有不同显示分辨率的计算机上正确显示表单和控件。在此先感谢!

Hi guys, may i know how to enable a form and controls to be displayed appropriately on another machine with a different display resolution. Thanks in advance!

推荐答案

如果您使用的是WinForms,则无法做到这一点。您可以使用Anchor属性将控件绑定到窗体的某些边缘,这些边缘将在窗体展开或收缩时移动,但这只是一个伪解决方案。您可以使用一些布局控件,如可以提供帮助的表布局。



如果您使用WPF,那么您可以使用其他类型的布局组件来帮助您设计一个随表单大小扩展的表单。
If you are using WinForms there is no good way to do this. You can use the Anchor properties to tie controls to certain edges of the form that will move when the form expands or contracts, but this is only a pseudo-solution. There are some layout controls you can use like a table layout that can help.

If you are using WPF then you can use other types of layout components to help you design a form that expands with the size of the form.


这篇关于vb.net 2010表单以不同的分辨率调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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