Version

Suppress Events from Being Raised

The WinCalendarInfo’s™ EventManager can be used to suppress events from being raised/fired. The following example code demonstrates how to suppress the BeforeAppointmentAdded event.

In Visual Basic:

Imports Infragistics.Win.UltraWinSchedule
...
Private Sub Suppress_Events_from_Being_Raised_Load( _
  ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraCalendarInfo1.EventManager.SetEnabled( _
	  CalendarInfoEventIds.BeforeAppointmentAdded, False)
End Sub

In C#:

using Infragistics.Win.UltraWinSchedule;
...
private void Suppress_Events_from_Being_Raised_Load(
  object sender, EventArgs e)
{
	this.ultraCalendarInfo1.EventManager.SetEnabled(
	  CalendarInfoEventIds.BeforeAppointmentAdded, false);
}