System.Windows.Forms.Screen screen = Screen.PrimaryScreen;System.Drawing.Rectangle rct = screen.Bounds;// rct.Height; rct.Width; 即是屏幕的高和宽