Version

AfterCloseAppointmentDialog Event

Fired after an appointment dialog has been closed.
Syntax
'Declaration
 
Public Event AfterCloseAppointmentDialog As AppointmentEventHandler
public event AppointmentEventHandler AfterCloseAppointmentDialog
Event Data

The event handler receives an argument of type AppointmentEventArgs containing data related to this event. The following AppointmentEventArgs properties provide information specific to this event.

PropertyDescription
Appointment Appointment object associated with the event. This property is read-only.
Example
This example informs the end user that the Appointment dialog was closed.

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_AfterCloseAppointmentDialog(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.AppointmentEventArgs) Handles ultraCalendarInfo1.AfterCloseAppointmentDialog

        '----------------------------------------------------------------------------------------------------
        '	Description
        '	AfterCloseAppointmentDialog
        '
        '	Fires after the Appointment dialog is closed by the end user
        '
        '----------------------------------------------------------------------------------------------------

        Dim info As String = "The Appointment dialog was closed." + vbCrLf

        '	If the count of the Appointments collection is zero, no appointment was added
        If (Me.ultraCalendarInfo1.Appointments.Count = 0) Then info += "No Appointment was added."

        MessageBox.Show(info, "AfterCloseAppointmentDialog", MessageBoxButtons.OK)

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

		private void ultraCalendarInfo1_AfterCloseAppointmentDialog(object sender, Infragistics.Win.UltraWinSchedule.AppointmentEventArgs e)
		{

			//----------------------------------------------------------------------------------------------------
			//	Description
			//	AfterCloseAppointmentDialog
			//
			//	Fires after the Appointment dialog is closed by the end user
			//
			//----------------------------------------------------------------------------------------------------

			string info = "The Appointment dialog was closed." + "\n";
			
			//	If the count of the Appointments collection is zero, no appointment was added
			if ( this.ultraCalendarInfo1.Appointments.Count == 0 )
				info += "No Appointment was added.";

			MessageBox.Show( info, "AfterCloseAppointmentDialog", 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