Edward Aymami

Edward Aymami

  • 1.5k
  • 239
  • 2.3k

How to determine the screen size a computer with C#

Dec 6 2023 7:53 PM

I need to find out the screen size of any computer that my application is running on. I want to center my forms without using the whole screen. I am using Visual Studio to develop this application. I have looked at MS docs but there are now examples of how or where to execute the comomand. I need both Horizontal and Vertical numbers.

Any help would be greatly appreciated.


Answers (6)