如何开发独立于决议的Windows窗体应用程序 [英] How to develop an Resolution independent Windows Forms Application

查看:77
本文介绍了如何开发独立于决议的Windows窗体应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,
我们已经开发了一个Windows Forms Application Project,因为我们需要使我的应用程序独立于系统屏幕分辨率.即即使系统屏幕分辨率发生了变化,我的应用程序分辨率也应该是稳定的.

我从Microsoft网站尝试了一个示例,即
http://msdn.microsoft.com/en-us/library/ms812499.aspx [ ^ ]

在这种情况下, 运行本程序时,整个系统分辨率将更改为给定的大小,包括应用程序..

但是,我需要的是即使系统的分辨率发生了变化(即,如果系统分辨率更改为降低,我的应用程序也需要朝着大尺寸和垂直方向移动),我仍然需要固定我的应用程序大小...


我还观察了Microsoft论坛提供的用Visual Basic语言开发的代码,但是我没明白,

该链接是.... http://support.microsoft.com/kb /182070/en-us?spid = 2971& sid = 195 [ ^ ]

请给我代码,使我的寡妇申请程序独立于解决方案....
或向我显示以上MSDN代码中的任何更改都可以满足我的要求..


谢谢



问候!
V G S Naidu

Hai ,
We have Developed an Windows Forms Application Project, In that what we need is we have to Make my Application Independent of the System screen resolution.i.e My Application resolution should be stable even though System screen resolution changed.

I have Tried one Example from Microsoft Site, i.e
http://msdn.microsoft.com/en-us/library/ms812499.aspx[^]

In that, When i run the Program the whole system resolution is changed to given size Including the Application..

But what i need is i need to Fix my Application size stable, Even though the resolution of the system is changed(i.e if the system resolution is changed to lower my application need to exist towards big size and vise verse )..


I Also Observe the code Given by the Microsoft Forums,which is Developed in Visual Basic Language But i didn''t Get that,,

that link is .... http://support.microsoft.com/kb/182070/en-us?spid=2971&sid=195[^]

Please give me the Code to Make my widows application Resolution independent....
or Show me Any changes in the above MSDN codes to achieve my requirement..


Thank You



Regards!
V G S Naidu

推荐答案

请查看我过去对类似问题的回答:

当屏幕分辨率改变时,Zom Out发生故障 [ ^ ],
GUI外观-C#.Net [如何停靠按钮,以便它可以使用以下格式进行调整 [
Please see my past answers to similar questions:

Zom Out malfunctions when Screen resolution changes[^],
GUI Apperance - C#.Net[^],
how to dock button so that it can adjust with the form[^].

—SA


这篇关于如何开发独立于决议的Windows窗体应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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