title: Visual Basic form .close() method
body: <p>I have the below snippet of code:</p>
  
  <pre><code>'Handle level specific properties
  Select Case ScoreCard.CurrentDifficulty
      Case 1
          intImageCount = 2 'This is the number of images to show at any given time on screen +1
  
          'debug
          ScoreCard.CurrentDifficulty = 6
      Case 2
          intImageCount = 3 'This is the number of images to show at any given time on screen +1
      Case 3
          intImageCount = 5 'This is the number of images to show at any given time on screen +1
      Case 4
          intImageCount = 2  'This is the number of images to show at any given time on screen +1
      Case 5
          intImageCount = 5 'This is the number of images to show at any given time on screen +1
      Case 6
          frmLevel3_HouseOfMirrors.Show()
          Me.Close()
          Return
  End Select
  </code></pre>
  
  <p>When <code>case 6</code> is executed <code>frm3_HouseOfMirrors.Show()</code> executes and my new form opens. <code>Me.close</code> executes as well but my problem is that the script then gets to the return line. Isn't <code>me.Close()</code> suppose to stop all execution of code on the current form and unload its self from memory?</p>