Visual Basic Reference

DropDown Event

See Also    Example    Applies To

Occurs when the list portion of a ComboBox control is about to drop down; this event doesn't occur if a ComboBox control's Style property is set to 1 (Simple Combo).

Syntax

Private Subobject_DropDown([indexAsInteger])

The DropDown event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
index An integer that uniquely identifies a control if it's in a control array.

Remarks

Use a DropDown event procedure to make final updates to a ComboBox list before the user makes a selection. This enables you to add or remove items from the list using the AddItem or RemoveItem methods. This flexibility is useful when you want some interplay between controls for example, if what you want to load into a ComboBox list depends on what the user selects in an OptionButton group.