title: Closing Winform MenuStrip when mouse leaves the container
body: <p>I´m have been dealing with this issue all day. I have a menustrip with several menu items.
  Each item, also have many items. Now, if I click the parent menu item, a container(similar to contextmenu) stays opened until I click somewhere else.</p>
  
  <p><img src="https://i.stack.imgur.com/y3UaR.png" alt="enter image description here"></p>
  
  <p>In the image example, "Clientes" will be the parent item, and there its the "container" with their child menu items.</p>
  
  <p>What I wanted to do, is to close that "container" when the mouse leaves the parent item or the container area. I dont want to have to click in any other part of the form to close it. When I say that, its because I´m actually using WPF buttons and I need to do it this way.</p>
  
  <p>I need help here, hope somebody can give me some advice.</p>
  
  <p>I tried to use the MouseLeave event of the parents items ("Clientes", etc.) and there did:</p>
  
  <pre><code>private void clientesToolStripMenuItem_MouseLeave(object sender, EventArgs e)
      {
          clientesToolStripMenuItem.DropDown.Close();
      }
  </code></pre>
  
  <p>This works, but obviously, it closes the parent and also the container, when the mouse leaves menuitem "Clientes". I need a way to know if the mouse is over the parent menuitem or over one of their childs so as to close it if I know that the mouse is somewhere else.</p>
  
  <p>Hope somebody can help me out.</p>