Version

AfterActivitiesDeletedEventHandler Delegate

Delegate for handling the AfterActivitiesDeleted event
Syntax
'Declaration
 
Public Delegate Sub AfterActivitiesDeletedEventHandler( _
   ByVal sender As Object, _
   ByVal e As EventArgs _
) 
public delegate void AfterActivitiesDeletedEventHandler( 
   object sender,
   EventArgs e
)

Parameters

sender
e
Example
This example checks the count of each activity collection (Appointments, Holidays, and Notes), and informs the end user of the new count.

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.

Private Sub UltraMonthViewSingle1_AfterActivitiesDeleted(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ultraMonthViewSingle.AfterActivitiesDeleted

    '----------------------------------------------------------------------------------------------------
    '	Description
    '	AfterActivitiesDeleted
    '
    '	Fires after one or more Appointments or Notes are deleted via the control's UI.
    '	If the BeforeActivitiesDeleted event is not canceled, the AfterActivitiesDeleted event fires.
    '
    '----------------------------------------------------------------------------------------------------

    '	Get the count of each activity collection
    Dim appointmentCount As Integer = Me.ultraMonthViewSingle.CalendarInfo.Appointments.Count
    Dim noteCount As Integer = Me.ultraMonthViewSingle.CalendarInfo.Notes.Count

    '	Display a MessageBox informing the user of the new counts
    Dim info As String = String.Empty
    info += "There are currently " + appointmentCount.ToString() + " Appointment(s), "
    info += "and " + noteCount.ToString() + " Note(s) remaining."

    MessageBox.Show(info, "AfterActivitiesDeleted", MessageBoxButtons.OK)
End Sub
private void ultraMonthViewSingle1_AfterActivitiesDeleted(object sender, System.EventArgs e)
{
	//----------------------------------------------------------------------------------------------------
	//	Description
	//	AfterActivitiesDeleted
	//
	//	Fires after one or more Appointments or Notes are deleted via the control's UI.
	//	If the BeforeActivitiesDeleted event is not canceled, the AfterActivitiesDeleted event fires.
	//
	//----------------------------------------------------------------------------------------------------

	//	Get the count of each activity collection
	int appointmentCount = this.ultraMonthViewSingle1.CalendarInfo.Appointments.Count;
	int noteCount = this.ultraMonthViewSingle1.CalendarInfo.Notes.Count;

	//	Display a MessageBox informing the user of the new counts
	string info = string.Empty;
	info += "There are currently " + appointmentCount.ToString() + " Appointment(s), ";
	info += "and " + noteCount.ToString() + " Note(s) remaining.";

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