Paul Lefebre wrote (2015):
Referring to the window by its name will cause it to open. Either do not refer to it by name after you have closed it, or turn off Implicit Instance and keep your own instance around to use.
When Implicit Instance is off, calling a window method when the window is closed opens it again. To avoid this I found the only way is as the following example, beause if not Hide it shows it, and if not closed it opens a new instance for every call.
Am I missing somethig (other that putting the method in a module)
Sub Action() Handles Action var w as new window2 w.Hide w.doSomething w.close End Sub