vb.net应用程序的屏幕分辨率问题 [英] screen resolution problem to vb.net application

查看:135
本文介绍了vb.net应用程序的屏幕分辨率问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将vb.net应用程序的屏幕分辨率设置为1024 * 768.但是我的客户有800 * 600的分辨率.如何在vb.net中自动调整该分辨率.如何根据Windows默认大小设置动态屏幕分辨率.

I set screen resolution to 1024*768 to my vb.net application. But my client have 800*600 resolution. How to automatic adjust that resolution in vb.net. How to set dynamic screen resolution based on windows default size.

推荐答案

从不建议从应用程序中调整用户屏幕分辨率.如果用户监视器的最大分辨率为800 X 600,会发生什么?作为用户,如果应用程序更改了我的屏幕分辨率,我真的会很沮丧.作为此问题的解决方案,Winforms具有诸如 Dock and Anchor Dock和Anchor的属性. a> [^ ],可用于根据用户分辨率适当设置控件的尺寸. 在此处查看文章 [ ^ ].如果发现无法以小于1024 X 768的分辨率查看应用程序,则需要将此作为运行该应用程序的要求,并让用户从中选择要执行的操作.

希望这会有所帮助.
It is never recommended to adjust a users screen resolution from an application. What happens if the users monitor''s maximum resolution is 800 X 600 ? As a user I would really be upset if an application changed my screen resolution. As a solution to this problem Winforms has properties such as Dock and Anchor[^] which can be used to appropriately set the dimensions of controls depending on the users resolution. See article here[^] . If you find that your application cannot be viewed in any resolution less than say 1024 X 768, then you need to state this as a requirement for running this application, and let the user select what to do from there.

Hope this helps.


韦恩是对的.请查看我过去对分辨率的设计和UI设计的回答:

当屏幕分辨率改变时,Zom Out发生故障 [ ^ ].

表单的简约代码示例:
如何停靠按钮,以便它可以使用以下格式进行调整 [ GUI外观-C#.Net [
Wayne is right. Please see my past answer of resolution-tolerant design and UI design:

Zom Out malfunctions when Screen resolution changes[^].

Minimalistic code sample for Forms here:
how to dock button so that it can adjust with the form[^].

See also:
GUI Apperance - C#.Net[^].

—SA


这篇关于vb.net应用程序的屏幕分辨率问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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