DesktopDisplay.Width

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aDesktopDisplay.Width

New in 2021r3

Supported for all project types and targets.

The width of the display. Use the DesktopDisplay.DisplayAt method to call Width. For example, DesktopDisplay.DisplayAt(0).Width returns the width of the main display.