Articles in this section
Category / Section

How to manually dropdown the ComboBoxBase?

1 min read

 

The dropdown area of ComboBoxBase can be programmatically displayed using the following code.

In this example, a button control is added to the form and a Click event handler is setup to call the DroppedDown property.


C#

object sender, System.EventArgs e)private void button1_Click(
{
    this.comboBoxBase1.DroppedDown =true;
}

VB

Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
    Me.comboBoxBase1.DroppedDown = True
End Sub

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied