title: VB.Net Mouse.Enter and Mouse.Leave both called in same event?
body: <p>In my VB.Net forms application, I have a function:</p>
  
  <pre><code>Private Sub pnlMain_MouseLeave(sender As Object, e As System.EventArgs) Handles pnlMain.MouseLeave
  ...
  End Sub
  </code></pre>
  
  <p>and another function:</p>
  
  <pre><code>Private Sub pnlMain_MouseEnter(sender As Object, e As System.EventArgs) Handles pnlMain.MouseEnter
  ...
  End Sub
  </code></pre>
  
  <p>When the mouse enters or leaves both are executed - first Enter and then Leave.  Why is this happening?</p>