Closing ComboBox DropDownList Programmatically
-
Hi I know how can i open Combobox dropdown list :
ComboBox1.DoDragDrop();
But i want to close it programmatically. I want to use it in my custom UserControl like Visual Studio DateTimePicker control. Clicking on it's ComboBox does't cause to openning dropdown list and just show Date Panel. Tanx. -
Hi I know how can i open Combobox dropdown list :
ComboBox1.DoDragDrop();
But i want to close it programmatically. I want to use it in my custom UserControl like Visual Studio DateTimePicker control. Clicking on it's ComboBox does't cause to openning dropdown list and just show Date Panel. Tanx.DoDragDrop does not drop down the combo box, it starts a drag-and-drop operation. If you want the combo box list to drop down, use the ComboBox.DroppedDown[^] property. You can close it by setting that property to
false
, open it by setting the property totrue
.Tech, life, family, faith: Give me a visit. I'm currently blogging about: Passover: Do this in remembrance of Me The apostle Paul, modernly speaking: Epistles of Paul Judah Himango