Version

AfterInvokeAppointmentAction Event

Fired after the action for an appointment is invoked.
Syntax
'Declaration
 
Public Event AfterInvokeAppointmentAction As AppointmentEventHandler
public event AppointmentEventHandler AfterInvokeAppointmentAction
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 an Appointment's Action has been invoked and displays information about the appointment and the action.

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

        '----------------------------------------------------------------------------------------------------
        '	Description
        '	AfterInvokeAppointmentAction
        '
        '	Fires after an Appointment's action is invoked
        '
        '	An Appointment object can be assigned an AppointmentAction via it Action property.
        '	The AppointmentAction can, for example, launch an application when an appointment
        '	becomes due. In this scenario, the AfterInvokeAppointmentAction would fire immediately
        '	after that application was launched.
        '
        '----------------------------------------------------------------------------------------------------

        Dim info As String = String.Empty
        info += "A Appointment's action was just invoked:" + vbCrLf
        info += "The new Appointment starts on: " + e.Appointment.StartDateTime.ToLongDateString() + vbCrLf
        info += "The new Appointment ends on: " + e.Appointment.EndDateTime.ToLongDateString() + vbCrLf
        info += "The new Appointment's start time is: " + e.Appointment.StartDateTime.ToLongTimeString() + vbCrLf
        info += "The new Appointment's end time is: " + e.Appointment.EndDateTime.ToLongTimeString() + vbCrLf

        info += "The new Appointment's Subject is: " + e.Appointment.Subject + vbCrLf
        info += "The new Appointment's Location is: " + e.Appointment.Location + vbCrLf
        info += "The new Appointment's Description is: " + e.Appointment.Description + vbCrLf + vbCrLf
        info += "The new Appointment Action's command is: " + e.Appointment.Action.Command + vbCrLf
        info += "The new Appointment Action's command parameters are: " + e.Appointment.Action.Parameters + vbCrLf

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

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

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

			//----------------------------------------------------------------------------------------------------
			//	Description
			//	AfterInvokeAppointmentAction
			//
			//	Fires after an Appointment's action is invoked
			//
			//	An Appointment object can be assigned an AppointmentAction via it Action property.
			//	The AppointmentAction can, for example, launch an application when an appointment
			//	becomes due. In this scenario, the AfterInvokeAppointmentAction would fire immediately
			//	after that application was launched.
			//
			//----------------------------------------------------------------------------------------------------
		
			string info = string.Empty;
			info += "A Appointment's action was just invoked:" + "\n\n";
			info += "The new Appointment starts on: " + e.Appointment.StartDateTime.ToLongDateString() + "\n";
			info += "The new Appointment ends on: " + e.Appointment.EndDateTime.ToLongDateString() + "\n";
			info += "The new Appointment's start time is: " + e.Appointment.StartDateTime.ToLongTimeString() + "\n";
			info += "The new Appointment's end time is: " + e.Appointment.EndDateTime.ToLongTimeString() + "\n";

			info += "The new Appointment's Subject is: " + e.Appointment.Subject + "\n";
			info += "The new Appointment's Location is: " + e.Appointment.Location + "\n";
			info += "The new Appointment's Description is: " + e.Appointment.Description + "\n" + "\n";
			info += "The new Appointment Action's command is: " + e.Appointment.Action.Command + "\n";
			info += "The new Appointment Action's command parameters are: " + e.Appointment.Action.Parameters + "\n";
			
			MessageBox.Show( info, "AfterInvokeAppointmentAction", 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