ShowDropButtonWhen Property

See Also         Example         Applies To        

Specifies when to show the drop-down button for a ComboBox.

Syntax

object.ShowDropButtonWhen [=ShowDropButtonWhen]

The ShowDropButtonWhen property syntax has these parts:

Part Description
object Required. A valid object.
ShowDropButtonWhen Optional. The circumstances under which the drop-down button will be visible.

Settings

The settings for ShowDropButtonWhen are:

Value Description
0 Do not show the drop-down button under any circumstances.
1 Show the drop-down button when the control has the focus.
2 Always show the drop-down button.

For a ComboBox, the default value is 2.