How can I get screen resolution in console app (if it's possible)?
While in Forms
I can use:
int height = Screen.PrimaryScreen.Bounds.Height;
int width = Screen.PrimaryScreen.Bounds.Width;
but I'm looking specifically console way.
So the way to solve my problem was proposed by Marc-Antoine Jutras. I need int
values so I went like this:
int height = Convert.ToInt32(SystemParameters.PrimaryScreenHeight);
int width = Convert.ToInt32(SystemParameters.PrimaryScreenWidth);