'Declaration Protected Overridable Sub OnInitializeDay( _ ByVal e As InitializeDayEventArgs _ )
protected virtual void OnInitializeDay( InitializeDayEventArgs e )
Raising an event invokes the event handler through a delegate.
The OnInitializeDay 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 OnInitializeDay in a derived class, be sure to call the base class's OnInitializeDay method so that registered delegates receive the event.
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports System.Diagnostics Private Sub ultraCalendarInfo1_InitializeDay(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.InitializeDayEventArgs) Handles ultraCalendarInfo1.InitializeDay '---------------------------------------------------------------------------------------------------- ' Description ' InitializeDay ' ' Fires when a Day object is initialized, either through actions performed via the user interface, ' or as a result of the GetDay method being called. ' '---------------------------------------------------------------------------------------------------- Debug.WriteLine("================================================================================") Debug.WriteLine("InitializeDay event fired for " + e.Day.Date.ToLongDateString()) Debug.WriteLine("================================================================================") Debug.WriteLine("") End Sub
using System.Diagnostics; using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void ultraCalendarInfo1_InitializeDay(object sender, Infragistics.Win.UltraWinSchedule.InitializeDayEventArgs e) { //---------------------------------------------------------------------------------------------------- // Description // InitializeDay // // Fires when a Day object is initialized, either through actions performed via the user interface, // or as a result of the GetDay method being called. // //---------------------------------------------------------------------------------------------------- Debug.WriteLine( "================================================================================" ); Debug.WriteLine( "InitializeDay event fired for " + e.Day.Date.ToLongDateString() ); Debug.WriteLine( "================================================================================" ); Debug.WriteLine( "" ); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2