How to make combo box auto expand on mouse hover and close when the mouse leaves combo box in c#? [duplicate]

為{幸葍}努か 提交于 2019-12-06 04:21:16

Use the DroppedDown Property and make it true,

 private void comboBox1_MouseHover(object sender, EventArgs e)
    {
      var box = sender as ComboBox ;
       box.DroppedDown = true;
    }  
russelrillema

comboBox1.DroppedDown = true;

This has already been answered here Open ComboBox DropDown programmatically [duplicate]

which was actually a duplicate of Winforms: how to open combobox properly?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!