ToolStripComboBox.OnSelectedIndexChanged(EventArgs) Method

Definition

Inicia el evento SelectedIndexChanged.Raises the SelectedIndexChanged event.

protected:
 virtual void OnSelectedIndexChanged(EventArgs ^ e);
protected virtual void OnSelectedIndexChanged (EventArgs e);
abstract member OnSelectedIndexChanged : EventArgs -> unit
override this.OnSelectedIndexChanged : EventArgs -> unit
Protected Overridable Sub OnSelectedIndexChanged (e As EventArgs)

Parameters

e
EventArgs

Objeto EventArgs que contiene los datos del evento.An EventArgs that contains the event data.

Remarks

Cuando se genera un evento, se invoca el controlador de eventos a través de un delegado.Raising an event invokes the event handler through a delegate. Para obtener más información, consulte controlar y provocar eventos.For more information, see Handling and Raising Events.

El método OnSelectedIndexChanged también permite que las clases derivadas controlen el evento sin adjuntar ningún delegado.The OnSelectedIndexChanged method also allows derived classes to handle the event without attaching a delegate. Ésta es la técnica preferida para controlar el evento en una clase derivada.This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

Al reemplazar OnSelectedIndexChanged(EventArgs) en una clase derivada, asegúrese de llamar al método OnSelectedIndexChanged(EventArgs) de la clase base para que los delegados registrados reciban el evento.When overriding OnSelectedIndexChanged(EventArgs) in a derived class, be sure to call the base class’s OnSelectedIndexChanged(EventArgs) method so that registered delegates receive the event.

Applies to