DesktopApplication.WindowCount

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

DesktopApplication.WindowCount() As Integer

New in 2021r3

Supported for all project types and targets.

Returns the number of open windows.

Notes

The WindowCount property includes any windows that are invisible. If called during a window's Opening event, it includes that window. If called during a window's Closing event, it does not include that window.

fa-exclamation-circle-32.png
This function returns only the number of DesktopWindows. Windows of the original Window class will not be included in the number returned.

Examples

See the Window function for an example.

See Also

Window function; Window class.