第1个回答 2012-01-18
SystemInformation.WorkingArea.Width.ToString() SystemInformation.WorkingArea.Height.ToString()
这是取得当前的屏幕除任务栏外的工作域大小
System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width.ToString() System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height.ToString()
这是取得当前的屏幕包括任务栏的工作域大小
通过这个值来初始化窗口大小