Category / Section
How to Manually Drop Down 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#
private void button1_Click(object sender, System.EventArgs e)
{
this.comboBoxBase1.DroppedDown =true;
}
VB
Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Me.comboBoxBase1.DroppedDown = True
End Sub