如何制作适合所有Window分辨率的Windows应用程序 [英] How to make windows application that fits to all Window resolution

查看:297
本文介绍了如何制作适合所有Window分辨率的Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,
我正在使用屏幕分辨率1024x768的vb.net开发Windows应用程序.
但是在另一种屏幕分辨率(例如1920x1080/1680x1050)上,我的应用程序无法正常运行,表格在顶部角落移动了小字体...而大小都变小了..

如何开发与我在计算机上开发的应用程序一样分辨率的应用程序.

请帮帮我....

谢谢...

Respected Sir,
I am developeing windows application using vb.net on screen resolution 1024x768.
but on another screen resolution like 1920x1080 / 1680x1050 my application doesn''t work properly,forms are shifted at top corner with small fonts...rather everything is smaller in size..

How to develop such application which can feet any resolution as same as I developed in my machine..

Please help me....

Thank you...

推荐答案

基本上,您不能-在应用程序大小更改时,没有很多工作来调整所有内容的大小-而且,我的意思是所有,因为尽管您可以使用Anchor和Dock属性非常轻松地自动调整控件的大小,但是它不会更改所使用的字体,因此大小保持不变.

如果必须执行此操作,则需要查看使用WPF代替-这是它非常擅长的事情之一.
Basically, you can''t - not without a lot of work resizing everything when teh application size changes - and I mean everything, because although you can automatically re-size controls very easily using the Anchor and Dock properties, it doesn''t alter the fonts used, so the sizes remain the same.

If you must do this, then you need to look at using WPF instead - it is one of the things it is very good at.


这篇关于如何制作适合所有Window分辨率的Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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