Edit

Share via


ToolStripItem.OnGiveFeedback(GiveFeedbackEventArgs) Method

Definition

Raises the GiveFeedback event.

protected:
 virtual void OnGiveFeedback(System::Windows::Forms::GiveFeedbackEventArgs ^ giveFeedbackEvent);
protected virtual void OnGiveFeedback (System.Windows.Forms.GiveFeedbackEventArgs giveFeedbackEvent);
abstract member OnGiveFeedback : System.Windows.Forms.GiveFeedbackEventArgs -> unit
override this.OnGiveFeedback : System.Windows.Forms.GiveFeedbackEventArgs -> unit
Protected Overridable Sub OnGiveFeedback (giveFeedbackEvent As GiveFeedbackEventArgs)

Parameters

giveFeedbackEvent
GiveFeedbackEventArgs

A GiveFeedbackEventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnGiveFeedback method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnGiveFeedback(GiveFeedbackEventArgs) in a derived class, be sure to call the base class's OnGiveFeedback(GiveFeedbackEventArgs) method so that registered delegates receive the event.

Applies to