From Xojo Documentation

Revision as of 18:12, 23 July 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

DesktopApplication.WindowCount() As Integer

New in 2021r3

Supported for all project types and targets.

Returns the number of open windows.


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.

This function returns only the number of DesktopWindows. Windows of the original Window class will not be included in the number returned.


See the Window function for an example.

See Also

Window function; Window class.