I have a little log in screen that pops up if a user selects a certain item on my main form. How do I get my code to stop executing til my log in form closes?
This is what I am doing so far. Basically i want o execute the code after MyLogin closes.
BMSSplash.MyLogin.Show()
If isLoggedIn Then
BMSSplash.MyBuddy.Show()
Cursor.Current = Cursors.WaitCursor
End If
One easy and reasonable option would be to show the form modally with
ShowDialoginstead ofShow. This will block the rest of your application until the form is closed: