I’d like to pause the activity in one window while the user interacts with another window, and then return control to the calling window when done.
For example:
(in Window1 method)
'hide controls from Phase1
InstructionsWindow.ShowThis(somestring)
'show controls for Phase2
Sub Instructions.ShowThis(str as string)
'display str
InstructionsGoButton.visible = true
me.ShowModal
Sub InstructionsGoButton.Action
Instructions.close
When they press the GoButton, I’d like to return control to Window1. But I don’t want the Phase2 controls to appear until Instructions are closed.
Should I return some variable (from InstructionsGoButton.Action? from Instructions.ShowThis?) that lets Window1 know when to proceed? Or do I need to use cycles with a busywaiting checking some global variable? I feel like I’m missing a straightforward solution.
Thanks!