引用命名空间using System.Windows.Forms;获取屏幕分辨率,Hight:Screen.PrimaryScreen.Bounds.Height;Width: Screen.PrimaryScreen.Bounds.Width;
可以用:winform System.Drawing.Size mSize=SystemInformation.WorkingArea.Size;int i=mSize.Height;int j=mSize.Width;