Uredi

Deli z drugimi prek


MonthCalendar.OnDateChanged(DateRangeEventArgs) Method

Definition

Raises the DateChanged event.

protected:
 virtual void OnDateChanged(System::Windows::Forms::DateRangeEventArgs ^ drevent);
protected virtual void OnDateChanged (System.Windows.Forms.DateRangeEventArgs drevent);
abstract member OnDateChanged : System.Windows.Forms.DateRangeEventArgs -> unit
override this.OnDateChanged : System.Windows.Forms.DateRangeEventArgs -> unit
Protected Overridable Sub OnDateChanged (drevent As DateRangeEventArgs)

Parameters

drevent
DateRangeEventArgs

A DateRangeEventArgs 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 OnDateChanged 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 OnDateChanged(DateRangeEventArgs) in a derived class, be sure to call the base class' OnDateChanged(DateRangeEventArgs) method so that registered delegates receive the event.

Applies to

See also