RosettaCodeData/Task/GUI-Maximum-window-dimensions/C-sharp/gui-maximum-window-dimensions-1.cs
2019-09-12 10:33:56 -07:00

15 lines
436 B
C#

using System;
using System.Drawing;
using System.Windows.Forms;
static class Program
{
static void Main()
{
Rectangle bounds = Screen.PrimaryScreen.Bounds;
Console.WriteLine($"Primary screen bounds: {bounds.Width}x{bounds.Height}");
Rectangle workingArea = Screen.PrimaryScreen.WorkingArea;
Console.WriteLine($"Primary screen working area: {workingArea.Width}x{workingArea.Height}");
}
}