DropDown Event

Occurs when the list portion of a ComboBox control is about to drop down after the drop-down arrow is clicked.

PROCEDURE ComboBox.DropDown

Remarks

Applies To: ComboBox

Use a DropDown event procedure to make final updates to the list portion of a ComboBox before the user makes a selection. This enables you to add or remove items from the list using the AddItem or RemoveItem method. This flexibility is useful if you want controls to interact at run time. For example, what you want to appear in the list portion of a ComboBox could be determined by what the user chooses in an OptionGroup.

In Visual FoxPro 9.0 you can include the NODEFAULT Command within the DropDown event procedure to prevent the list portion of a ComboBox control from dropping down. Including NODEFAULT prevents a user from accessing the list portion, either with the mouse or the keyboard.

See Also

Reference

AddItem Method (Visual FoxPro)

DownClick Event

RemoveItem Method

Other Resources

Events (Visual FoxPro)

Language Reference (Visual FoxPro)