Sorry for this probably stupid question – I spent 2 hours trying to understand what is happening, but…
My application has 3 windows (Window1, Window2, Window3) all 3 are of the Document type.
When the application opens, Window1 has to be shown. A file is loaded.
If it is loaded for the first time, pressing on the NEXT button, will close Window1 and open Window2. Window 2 contains instructions for the user.
If it has been loaded before, the user had read the instructions before, so Window1 closes and Window3 should open.
I’m using
Window3.Show ( )
Window.1Close ( )
when I want to skip Window2.
Strange thing is that I always seem to call Window2 even though I want to skip it. It always shows up.
My questions:
Is Document type what I need for the 3 windows?
Does the order of showing and closing a window matter?
Is there anything that can trigger this unwanted behavior?