如何使用C#为Windows应用程序设置分辨率 [英] How Set resolution to windows application using c#

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

问题描述

我已经使用C#开发了应用程序,但这与其他计算机分辨率不匹配.

I have developed application using C#,But that does not match another computer resolution.

推荐答案

这表明您的应用程序设计不佳.您不需要更改分辨率就可以使您的应用程序正常工作,因为它也会影响所有其他正在运行的应用程序.您应该学习例如如何使用锚点.

如果您只能处理单个分辨率,则适合您的Apple设备开发.但是,您将需要能够处理一些解决方案.

祝你好运!
This indicated your application isn''t designed very well. You shouldn''t need to change the resolution to have your application work correctly because it would effect all other running applications as well. You should learn how to use anchors for example.

If you can handle only a single resolution, then development for apple devices is for you. You would need to be able to handle a few resolutions though.

Good luck!




尝试这样,

Hi,

try like this,

Form1 frm = new Form1();
frm.WindowState = FormWindowState.Maximized;
frm.Show();



这会根据客户端屏幕自动调整.

希望对您有所帮助.



this will automatically adjust with client screen.

hope it helps.


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

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