@Graham B Window frame is a document, setting to other types does nothing.
Seems like a bug to me.
dim w as new window2()
The window shows on MsgBox "here"
What if i want to show it within a certain window etc. I could not get to that code.
Also even if i never call show, with visible set to false it is still registered as an open Window in WindowCount.
I have to call close on the window to remove it.
The window should NOT be shown* but the Open Event should fire as that has to do with constructing the window. E.g. set the properties in the open event. If the default IDE setting is visible or the Open even has Self.Visible = True then it could possibly show.
* unless you specify to do so in the Window.Open event
Sounds like a bug, i think you should make sure the Open event doesn't have visibility code in it.