Hello!

I have sub where I show form and then execution of code behind Form1.show must wait until Form1 unloads. Something like that:

Sub Main()
Form1.show '(login form)
'here must program execution stop until form1 is unloaded
'but I don't know how can I do that
...
... 'other code
...
End Sub

Can anyone help me with that?