Search code examples
c#.netconsole-applicationscreen-size

How to get the screen size of Console Application?


How do you get the screen size in a console application?


Solution

  • var w = Console.WindowWidth;
    var h = Console.WindowHeight;
    

    --EDIT--

    Screen.PrimaryScreen.Bounds 
    Screen.PrimaryScreen.WorkingArea