Version

OnAfterSelectedHolidaysChange Method

Raises the AfterSelectedHolidaysChange event after a change is applied to the SelectedHolidays.
Syntax
'Declaration
 
Protected Overridable Sub OnAfterSelectedHolidaysChange( _
   ByVal e As EventArgs _
) 
protected virtual void OnAfterSelectedHolidaysChange( 
   EventArgs e
)

Parameters

e
A System.EventArgs that provides data for the event.
Remarks

Raising an event invokes the event handler through a delegate.

The OnAfterSelectedHolidaysChange 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 OnAfterSelectedHolidaysChange in a derived class, be sure to call the base class's OnAfterSelectedHolidaysChange method so that registered delegates receive the event.

Example
This example displays the new count of the SelectedHolidays collection.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.Diagnostics

    Private Sub ultraCalendarInfo1_AfterSelectedHolidaysChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles ultraCalendarInfo1.AfterSelectedHolidaysChange

        '----------------------------------------------------------------------------------------------------
        '	Description
        '	AfterSelectedHolidaysChange
        '
        '	Fires after one or more Holiday(s) are selected or deselected.
        '
        '----------------------------------------------------------------------------------------------------

        MessageBox.Show("The number of selected Holidays is " + Me.ultraCalendarInfo1.SelectedHolidays.Count.ToString() + vbCrLf, "AfterSelectedHolidaysChange", MessageBoxButtons.OK)

    End Sub
using System.Diagnostics;
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

		private void ultraCalendarInfo1_AfterSelectedHolidaysChange(object sender, System.EventArgs e)
		{		

			//----------------------------------------------------------------------------------------------------
			//	Description
			//	AfterSelectedHolidaysChange
			//
			//	Fires after one or more Holiday(s) are selected or deselected.
			//
			//----------------------------------------------------------------------------------------------------
		
			MessageBox.Show( "The number of selected Holidays is " + this.ultraCalendarInfo1.SelectedHolidays.Count.ToString() + "\n", "AfterSelectedHolidaysChange", MessageBoxButtons.OK );

		}
Requirements

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

See Also