title: VB.Net how to wait for a different form to close before continuing on
body: <p>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?</p>
  
  <p>This is what I am doing so far. Basically i want o execute the code after MyLogin closes.</p>
  
  <pre><code>    BMSSplash.MyLogin.Show()
  
      If isLoggedIn Then
          BMSSplash.MyBuddy.Show()
          Cursor.Current = Cursors.WaitCursor
      End If
  </code></pre>