OnSelChange Event (AListBox)

Occurs when a selection was changed on the object using the keyboard, the mouse, changing the ListIndex property, or changing the Selected property.

Syntax

OnChange()

Comments

For a multiple-selection list box, this event is called whenever the user presses an arrow key, even if the selection does not change.

Example

lb1.OnSelChange()

{

lb1.Caption="Change noted"

}

Applies to

AListBox

See Also

Selected