Search notes:

System.Windows.Forms.Screen (class)

System.Windows.Forms.Screen represents a systems' display device or display devices.

Properties and methods

AllScreens An array of System.Windows.Forms.Screen objects.
BitsPerPixel
Bounds
DeviceName
Equals()
FromControl()
FromHandle()
FromPoint()
FromRectangle()
GetBounds()
GetHashCode()
GetWorkingArea()
Primary
PrimaryScreen
ToString()
WorkingArea

screens.ps1

screens.ps1 is a PowerShell script that prints the connected monitors' dimensions and positions.
# V.2
add-type -assemblyName System.Windows.Forms

''
'Monitor       Dimension  Work Area         Offset'
'-------       ---------  ---------    -----------'

foreach ($screen in [System.Windows.Forms.Screen]::AllScreens) {
    $wa = $screen.WorkingArea
   '{0:-18}  {1,4}x{2,4}  {3,4}x{4,4}  @ {5,5},{6,5}' -f $screen.DeviceName, $screen.Bounds.Width, $Screen.Bounds.Height, $wa.Width, $wa.Height, $wa.X, $wa.Y
}
''
Github repository scripts-and-utilities, path: /screens.ps1
Version 2 of the script shows both, the full dimensions and the working area's dimensions.

TODO

How does the output of this script related to
get-cimInstance -namespace root\wmi -className wmiMonitorBasicDisplayParams
get-wmiObject win32_VideoController | select caption,name,videoModeDescription,currentHorizontalResolution,currentVerticalResolution

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1759390505, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/Windows/Forms/Screen(82): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78