C#获取当前屏幕大小或任务栏的大小,不用API.
使用SystemInformation类就行了.View Code string currentScreenSize_OutTaskBar=SystemInformation.WorkingArea.Width.ToString() + "," +SystemInformation.WorkingArea.Height.ToString();MessageBox.Show("当前的屏幕除任务栏外的工作域大小为:"+currentScreenSize_OutTaskBar);View Code string currentScreenSize=System