Version

AfterNoteAdded Event

Fired after a Note has been added to the Notes collection.
Syntax
'Declaration
 
Public Event AfterNoteAdded As NoteEventHandler
public event NoteEventHandler AfterNoteAdded
Event Data

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

PropertyDescription
Note Returns the Note associated with the event. This property is read-only.
Example
This example displays information about the new Note after it is added.

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_AfterNoteAdded(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.NoteEventArgs) Handles ultraCalendarInfo1.AfterNoteAdded

        '----------------------------------------------------------------------------------------------------
        '	Description
        '	AfterNoteAdded
        '
        '	Fires after a new member is added to the component's Notes collection
        '
        '----------------------------------------------------------------------------------------------------

        Dim info As String = String.Empty
        info += "A new Note was just added to the UltraCalendarInfo object:" + vbCrLf + vbCrLf
        info += "The new Note is for : " + e.Note.Date.ToLongDateString() + vbCrLf
        info += "The new Note's Description is: " + e.Note.Description + vbCrLf

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

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

		private void ultraCalendarInfo1_AfterNoteAdded(object sender, Infragistics.Win.UltraWinSchedule.NoteEventArgs e)
		{		

			//----------------------------------------------------------------------------------------------------
			//	Description
			//	AfterNoteAdded
			//
			//	Fires after a new member is added to the component's Notes collection
			//
			//----------------------------------------------------------------------------------------------------
			
			string info = string.Empty;
			info += "A new Note was just added to the UltraCalendarInfo object:" + "\n\n";
			info += "The new Note is for : " + e.Note.Date.ToLongDateString() + "\n";
			info += "The new Note's Description is: " + e.Note.Description + "\n";
			
			MessageBox.Show( info, "AfterNoteAdded", 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