void MainFormLoad(object sender, EventArgs e)
{
Rectangle ScreenSize = System.Windows.Forms.Screen.GetBounds(this); // 获取屏幕宽度(包括状态栏)
Rectangle ScreenSize2 = System.Windows.Forms.Screen.GetWorkingArea(this); // 获取屏幕宽度(不包括状态栏)
int width = ScreenSize2.Width; // 获取屏幕宽度
int height = ScreenSize2.Height; // 获取屏幕高度
}