How to get the screen size of Console Application?

user1344948 picture user1344948 · May 20, 2012 · Viewed 10.4k times · Source

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

Answer

L.B picture L.B · May 20, 2012
var w = Console.WindowWidth;
var h = Console.WindowHeight;

--EDIT--

Screen.PrimaryScreen.Bounds 
Screen.PrimaryScreen.WorkingArea