如何在C#中将分辨率更改为Windows应用程序的其他分辨率 [英] How to change the resolution to other resolutions of the windows application in C#
本文介绍了如何在C#中将分辨率更改为Windows应用程序的其他分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hey need advice here!!
I need to be able to change from different 1 resolution to another but only my windows form application I am using visual studio and I have a menustrip control so Is there a way to do this I know how to change the resolution of my desktop in c# but not my windows form application so yeah any code advice here thanks.... greatly appreciated
我尝试了什么:
我尝试了其他方法,但最终没有任何结果
What I have tried:
I have tried other methods but only end up with nothing
推荐答案
请参阅动态屏幕分辨率 [ ^ ]。
我想出来了所有你需要做的就是这个for menustrip
I figured it out All you have to do is this for a menustrip
private void toolStripMenuItem2_Click(object sender, EventArgs e)
{
this.Size = new System.Drawing.Size(1024, 768);
}
这会改变大小windows形成这个解决方案的应用程序,无论哪种方式都很好...
this will change the size of the windows form application to this resolution either way great way to do this...
这篇关于如何在C#中将分辨率更改为Windows应用程序的其他分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文