如何使我的Windows应用程序适合任何屏幕分辨率 [英] How to make my windows applications fit to any screen resolution
问题描述
大家好,
任何人都可以告诉我如何使Windows应用程序适合任何屏幕分辨率。我有许多控件,如menustrip,toolstrip,paint,buttons等,我使用下面的代码只调整控件的大小,但我希望表单中的所有工具也根据屏幕分辨率调整大小。我一直在屏幕分辨率为1440 * 900的显示器上开发应用程序,但是如果我在另一台分辨率为1280 * 800的显示器上运行相同的应用程序,所有控件都会脱位,那么我该如何避免这样的过程?
提前致谢。
Hi all,
Can anybody tell me how to make windows application fit to any screen resolution. I have many controls in the form like menustrip, toolstrip, paint, buttons, etc., I have used the following code for only resizing the controls but i want all the tools in the form also resize as per screen resolution. I have been developing application on a monitor whose screen resolution is 1440*900, but if i run the same application in another monitor with resolution of 1280*800 all the controls get dislocated, so how do i avoid such a process?
Thanks in advance.
推荐答案
请查看我过去的答案:
当屏幕分辨率发生变化时Zom Out出现故障 [ ^ ],
如何停靠按钮以便可以使用表格进行调整 [ ^ ]。
参见: GUI外观 - C#.Net [ ^ ]。
-SA
Please see my past answers:
Zom Out malfunctions when Screen resolution changes[^],
how to dock button so that it can adjust with the form[^].
See also: GUI Apperance - C#.Net[^].
—SA
这篇关于如何使我的Windows应用程序适合任何屏幕分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!