'Declaration Public Event AfterNoteEdit As AfterNoteEditEventHandler
public event AfterNoteEditEventHandler AfterNoteEdit
The event handler receives an argument of type AfterNoteEditEventArgs containing data related to this event. The following AfterNoteEditEventArgs properties provide information specific to this event.
The AfterNoteEdit event fires after the corresponding Note object's in-place editor is closed.
Note that if the in-place editor is closed via the ESC key, which discards any changes that were made, the event does not fire.
If the BeforeNoteEdit event is canceled, the AfterNoteEdit event will not fire.
Private Sub UltraMonthViewSingle1_AfterNoteEdit(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinSchedule.AfterNoteEditEventArgs) Handles ultraMonthViewSingle.AfterNoteEdit '---------------------------------------------------------------------------------------------------- ' Description ' AfterNoteEdit ' ' Fires after a Note's description is edited via the control's UI. ' If the BeforeNoteEdit event is not canceled, the AfterNoteEdit event fires. ' '---------------------------------------------------------------------------------------------------- ' Get the old and new values for the Note's Subject ' from the event arguments Dim oldValue As String = e.OldValue Dim newValue As String = e.Note.Description ' Display the old and new values in a MessageBox Dim info As String = String.Empty info += "A Note's description was edited." + vbCrLf info += "The old value was '" + oldValue + "'." + vbCrLf info += "The new value is '" + newValue + "'." + vbCrLf MessageBox.Show(info, "AfterNoteEdit", MessageBoxButtons.OK) End Sub
private void ultraMonthViewSingle1_AfterNoteEdit(object sender, Infragistics.Win.UltraWinSchedule.AfterNoteEditEventArgs e) { //---------------------------------------------------------------------------------------------------- // Description // AfterNoteEdit // // Fires after a Note's description is edited via the control's UI. // If the BeforeNoteEdit event is not canceled, the AfterNoteEdit event fires. // //---------------------------------------------------------------------------------------------------- // Get the old and new values for the Note's Subject // from the event arguments string oldValue = e.OldValue; string newValue = e.Note.Description; // Display the old and new values in a MessageBox string info = string.Empty; info += "A Note's description was edited." + "\n"; info += "The old value was '" + oldValue + "'." + "\n"; info += "The new value is '" + newValue + "'." + "\n"; MessageBox.Show( info, "AfterNoteEdit", 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