DropButtonClick Event

Applies To

ComboBox control, TextBox control.

Description

Occurs whenever the drop-down list appears or disappears.

Syntax

Private Sub object_DropButtonClick( )

The DropButtonClick event syntax has these parts:

Part

Description

object

Required. A valid object.


Remarks

You can initiate the DropButtonClick event through code or by taking certain actions in the user interface.

In code, calling the DropDown method initiates the DropButtonClick event.

In the user interface, any of the following actions initiates the event:

  • Clicking the drop-down button on the control.
  • Pressing F4.
Any of the above actions, in code or in the interface, cause the drop-down box to appear on the control. The system initiates the DropButtonClick event when the drop-down box goes away.

See Also

DropButtonStyle property, DropDown method, ShowDropButtonWhen property.