/// <summary>
 /// Handles the AppointmentResizing event of the schedule control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Infragistics.Win.UltraWinSchedule.AppointmentResizingEventArgs"/> instance containing the event data.</param>
 private void schedule_AppointmentResizing(object sender, AppointmentResizingEventArgs e)
 {
     // Cancel the event
     e.Cancel = true;
 }
 /// <summary>
 /// Handles the AppointmentResizing event of the mvMonthly control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="AppointmentResizingEventArgs"/> instance containing the event data.</param>
 private void mvMonthly_AppointmentResizing(object sender, AppointmentResizingEventArgs e)
 {
     e.Cancel = true;
 }
        private void ultraDayView1_AppointmentResizing(
            object sender,
            AppointmentResizingEventArgs e)
        {
            _msgInfo = new UltraMessageBoxInfo();
            if (e.Phase == AppointmentResizePhase.Moving && e.NewDateTime > e.InitialDateTime.AddMinutes(60))
            {
                _msgInfo.Buttons = MessageBoxButtons.OKCancel;

                if (e.ResizeType == AppointmentResizeType.AdjustStartDateTime)
                {
                    _msgInfo.Text = "The start date time for the appointment '" + e.Appointment.Subject +
                                    "' varies by an hour from the initial start date time" + e.InitialDateTime +
                                    ". Do you want to continue re-sizing?";
                }
                else if (e.ResizeType == AppointmentResizeType.AdjustEndDateTime)
                {
                    _msgInfo.Text = "The end date time  for the appointment '" + e.Appointment.Subject +
                                    "' varies by an hour from the initial end date time" + e.InitialDateTime +
                                    ". Do you want to continue re-sizing?";
                }

                DialogResult result;
                result = ultraMessageBoxManager1.ShowMessageBox(_msgInfo);
                if (result == DialogResult.OK)
                {
                    e.Cancel = false;
                }
                else if (result == DialogResult.Cancel)
                {
                    e.Cancel = true;
                }
            }
        }