title: How to make combo box auto expand on mouse hover and close when the mouse leaves combo box in c#?
body: <p>I have a windows form. In that windows form i have a combo box. I have predefined items in the combo box as <strong>Add, Remove and Delete.</strong> <strong>I want to make the combo box auto expand on mouse hover.</strong> How can I do that? I noticed that auto expand code should be given in the mouse hover event of combo box. like this </p>
  
  <pre><code>     private void comboBox1_MouseHover(object sender, EventArgs e)
      {
  
      }  
  </code></pre>
  
  <p>but I don't know how to expand the combo box. Can anyone tell me how to do that?</p>
  
  <p>Ok I got it done the expanding part</p>
  
  <pre><code>    private void comboBox1_MouseHover(object sender, EventArgs e)
      {
          comboBox1.DroppedDown = true;
  
      }
  </code></pre>
  
  <p>but I want to close the combo box when I leave the mouse pointer from the combo box.. How to do that?</p>