【发布时间】:2015-01-01 02:35:07
【问题描述】:
如何获取表单所在屏幕的当前屏幕分辨率?
我已经尝试过使用primaryScreen,但它并不总是有效。
this.Size = new Size(Math.Min(width + 19, Screen.PrimaryScreen.WorkingArea.Width), Math.Min(height + dgvActualizar.ColumnHeadersHeight + 40, Screen.PrimaryScreen.WorkingArea.Height));
【问题讨论】:
-
怎么不行?如果没有,有什么问题?
标签: c# winforms visual-studio