I have a button at frmMain that creates a instance of a frmTemplate (which is a Window or Form if you wish)
Dim frmInstance As New frmTemplate
instanceShown = True // this is a property I will set to false once frmTemplate Close event fires in order for me to control whether the window is opened or not
Clicking the button again creates a new instance (indefinitely) but I just want to .show the frmTemplate (or setFocus on it) rather than creating a new Window.
I tried creating frmInstance as a frmMain property which works as desired, however, on button click I also need to set some properties on frmInstance and this way it will just not work properly (dunno why).