After opening from2 from code in form1 I'd like to hold the execution of code in form1 until form2 is closed.
How do I do this?
At the moment in one form I have the following code:
If condition is met then:
Me.MousePointer = vbHourglass
mintWindowState = Me.WindowState
If mfrmNewOrder Is Nothing Then Set mfrmNewOrder = New frmOrder
mfrmNewOrder.SetLoadMode LoadModeChild, cboOrderName.Text, cboOrderNumber.Text, "True"
mbooChildFormOpen = True
Cancel = True
'WOULD LIKE CODE TO HOLD HERE UNTIL frmLineOrder is closed
End if condition is True