在VB.NET中创建与分辨率无关的应用程序 [英] Creating resolution independent applications in VB.NET

查看:112
本文介绍了在VB.NET中创建与分辨率无关的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个VB.NET应用程序,这是一个基于mcq的小型测验.现在,当我以不同于我的PC的分辨率运行它时,表格上的所有项目(标签,文本框等)都会分散.

我们如何创建与分辨率无关的应用程序?

I have created a VB.NET app, a small mcq based quiz. Now when i run it on a different resolution than my PC then all the items(labels,textboxes etc) on the form get scattered.

How can we create resolution independent applications?

推荐答案

检查表单的AutoScaleMode属性

http://msdn.microsoft.com/en -us/library/system.windows.forms.autoscalemode(v = VS.100).aspx [ autoscalemode-problems-with-changed-default-font [ ^ ]
Check the AutoScaleMode property of the form

http://msdn.microsoft.com/en-us/library/system.windows.forms.autoscalemode(v=VS.100).aspx[^]

autoscalemode-problems-with-changed-default-font[^]


这篇关于在VB.NET中创建与分辨率无关的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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