title: Close after Login
body: <p>I have this VB .NET code. It is for a login:</p>
  
  <pre><code>If myData.HasRows = 0 Then
          MsgBox("Invalid License/Password!")
      Else
          MainForm.Show()
          Me.Hide()
      End If
  </code></pre>
  
  <p>The problem is the hide. Because when I close the program with the MainForm exit windows button, don´t close.</p>
  
  <p>If I put it <code>Me.Close()</code> close all the program.</p>