DropList Method

Displays the list box portion of the control.


Syntax

object.DropList

The syntax of the DropList method has these parts:

PartDescription
objectA DCombo control.

Remarks

The most common use for the DropList method is to display the list box in response to a key stroke.  DropList has no affect if the control does not have the keyboard focus.  The following example displays the list box portion of the control when a user presses the F4 key.


Private Sub DCombo1_KeyDown(KeyCode As Integer, ByVal Shift As Integer)
    If KeyCode = 115 Then
        DCombo1.DropList                
    End If
End Sub