Hello everyone!
I set up a “wdwAbout” to be the default window of a Mac Desktop app.
The wdwAbout opens… and another window also opens, because i have some setups, preferences, etc, on app.opening event.
is there a way to know if a window is open or not, so i can control some actions during app.opening event?
Alex
I always turn off “Implicit Instance” so the opening event isn’t triggered until I create the instance.
4 Likes
David_Cox
(David Cox)
July 10, 2025, 7:38am
3
Create a Method to cycle through the current windows and check if any of them (not exactly correct code):
For Each nextWindow As DesktopWindow in System.Windows
If nextWindow IsA wdwAbout Then
Return True
End If
Next
Return False
IMHO, in wdwAbout you access some properties (fire Methods ?) from the other window, that is why it appeared.
Put Methods and Properties in a Module to (probably, depends on code) avoid that.
1 Like