DesktopWindow.Width

From Xojo Documentation

Property (As Integer )
aDesktopWindow.Width = newIntegerValue
or
IntegerValue = aDesktopWindow.Width

New in 2021r3

Supported for all project types and targets.

The width of the content region of the window.

Notes

The left and right window frames are taken into account.