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 ); }
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