Uredi

Deli z drugimi prek


Control.OnGiveFeedback(GiveFeedbackEventArgs) Method

Definition

Raises the GiveFeedback event.

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

Parameters

gfbevent
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

See also