使用vb.net更改屏幕分辨率 [英] change screen resolution using vb.net

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

问题描述

我正在使用vb.net 2005 ....



i以1360 * 768的屏幕分辨率开发我的项目....



我的问题是当我以较低的分辨率安装我的设置,即1027 * 768,它影响我的项目视图..所以我如何调整屏幕分辨率取决于安装的系统的屏幕分辨率。 ...

解决方案

你应该学习使用 Anchor Dock TableLayoutPanel 而不是更改屏幕分辨率。改变分辨率是一个坏主意。


您需要为最小公分母进行编码。我不会设计任何小于1024/768的东西。这涵盖了大多数笔记本电脑屏幕和17英寸台式机显示器您编码的分辨率是笔记本电脑屏幕(我也有一个分辨率)。除非我的表单包含列表框,列表视图,网格或其他可以从更大的表单大小中受益的控件,否则我不允许用户重新调整表单大小。


< blockquote> 您的方法是错误的。为1360 * 768分辨率(以及任何其他分辨率)开发的项目完全没有任何价值。



您将需要通过UI部分项目并从头开始创建一个新的,这次很好。应用程序应该是分辨率容忍的,就是这样。

请参阅我的指示如何实现:

当屏幕分辨率发生变化时,Zom Out出现故障 [ ^ ]。



我的另一篇包含小代码示例的帖子:如何停靠按钮,以便可以使用表单进行调整 [ ^ ](抱歉,C#,但你应该明白它至少有点)。



另请参阅一些一般的UI建议:

GUI Apperance - C#.Net [ ^ ]。



-SA

am using vb.net 2005....

i developed my project on 1360*768 screen resolution....

My problem is while i install my setup in less resolution i.e,1027*768, its affect my project view..so how can i resize the screen resolutions depends on installed system''s screen resolution....

解决方案

You should learn to use Anchor, Dock, TableLayoutPanel instead of changing screen resolution. Changing resolution is a bad idea.


You need to code for the lowest common denominator. I don''t design for anything smaller than 1024/768. That covers most laptop screens and 17-inch desktop monitors. The resolution you coded for is a laptop screen (I have one at that resolution, too). Unless my form contains a listbox, listview, grid, or some other control that can benefit from a larger form size, I don''t allow the form to be re-sized by the user.


Your approach is wrong. A project developed for 1360*768 resolution (and any other resolution) has no value at all.

You will need to through out UI part of your project and create a new one from scratch, this time nicely. Applications should be resolution-tolerant, that''s it.
Please see my directions on how to achieve that:
Zom Out malfunctions when Screen resolution changes[^].

My other post with small code sample: how to dock button so that it can adjust with the form[^] (sorry, C#, but you''re supposed to understand it at least a bit).

See also some general UI recommendations:
GUI Apperance - C#.Net[^].

—SA


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

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