DesktopDisplay.Width
From Xojo Documentation
Read-Only Property (As Integer )
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.