本文介绍了屏幕分辨率与应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友
如何为Windows应用程序自动调整屏幕分辨率.我想这样尝试:
Hello Friends
How to adjust screen resolution automatically for windows application. i want to try like this :
this.Location = new Point(0, 0);
//this.Height = System.Windows.Forms.Screen.AllScreens[0].WorkingArea.Height;
//this.Width = System.Windows.Forms.Screen.AllScreens[0].WorkingArea.Width;
int iWindowWidth = Screen.PrimaryScreen.Bounds.Width;
int iWindowHeight = Screen.PrimaryScreen.Bounds.Height;
this.Size = new Size(iWindowWidth, iWindowHeight);
,但它不起作用
请帮助我.
but it is not working
please help me.
推荐答案
这篇关于屏幕分辨率与应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!