The IsNoteInEditMode property returns true if the control is currently editing a Note. Use the IsAppointmentInEditMode property to determine whether an Appointment is being edited.
Use the IsInEditMode property to determine whether the control is editing an activity of either type.
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.KeyPreview = True End Sub Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown If Me.UltraWeekView1.IsInEditMode Then If Me.UltraWeekView1.IsAppointmentInEditMode Then Debug.WriteLine("An Appointment is in edit mode.") ElseIf Me.UltraWeekView1.IsNoteInEditMode Then Debug.WriteLine("A Note is in edit mode.") End If End If If Me.UltraMonthViewSingle1.IsInEditMode Then If Me.UltraMonthViewSingle1.IsAppointmentInEditMode Then Debug.WriteLine("An Appointment is in edit mode.") ElseIf Me.UltraMonthViewSingle1.IsNoteInEditMode Then Debug.WriteLine("A Note is in edit mode.") End If End If If Me.UltraDayView1.IsInEditMode Then Debug.WriteLine("An Appointment is in edit mode.") End If End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using System.Diagnostics; private void Form1_Load(object sender, System.EventArgs e) { this.KeyPreview = true; } private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if ( this.ultraWeekView1.IsInEditMode ) { if ( this.ultraWeekView1.IsAppointmentInEditMode ) Debug.WriteLine( "An Appointment is in edit mode." ); else if ( this.ultraWeekView1.IsNoteInEditMode ) Debug.WriteLine( "A Note is in edit mode." ); } if ( this.ultraMonthViewSingle1.IsInEditMode ) { if ( this.ultraMonthViewSingle1.IsAppointmentInEditMode ) Debug.WriteLine( "An Appointment is in edit mode." ); else if ( this.ultraMonthViewSingle1.IsNoteInEditMode ) Debug.WriteLine( "A Note is in edit mode." ); } if ( this.ultraDayView1.IsInEditMode ) { Debug.WriteLine( "An Appointment is in edit mode." ); } }
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