Gets/sets whether the
AppointmentDialog is automatically displayed when the user double clicks on an
Appointment or in the day area.
Enables/disables automatic display of the AppointmentDialog
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewSingle
Private Sub EnableAutoAppointmentDialog( enable As Boolean )
' If the control is null, being disposed of,
' or has been disposed of, return, since we can't set its properties
'
If Me.ultraMonthViewSingle1 Is Nothing Or Me.ultraMonthViewSingle1.Disposing Or Me.ultraMonthViewSingle1.IsDisposed Then Return
' AutoAppointmentDialog - determines whether the AppointmentDialog is displayed when
' the user double-clicks on the day area of the control.
'
' Some applications might want to perform a special action when the control is double-clicked.
' In those cases, the AutoAppointmentDialog property should be set to false, which prevents
' the dialog from being displayed on a double-click. When the property is set to true, however,
' the AppointmentDialog is displayed on a double-click. If the cursor position at the time of the
' double-click is over an existing appointment, the dialog fields are pre-populated with that
' appointment's information (Subject, Location, StartDateTime, EndDateTime, etc.) If there
' is no appointment at that location, the dialog is initialized for a new appointment.
Me.ultraMonthViewSingle1.AutoAppointmentDialog = enable
End Sub
'Declaration
Public Property AutoAppointmentDialog As Boolean
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinSchedule.MonthViewSingle;
using System.Diagnostics;
private void EnableAutoAppointmentDialog( bool enable )
{
// If the control is null, being disposed of,
// or has been disposed of, return, since we can't set its properties
//
if ( this.ultraMonthViewSingle1 == null ||
this.ultraMonthViewSingle1.Disposing ||
this.ultraMonthViewSingle1.IsDisposed )
return;
// AutoAppointmentDialog - determines whether the AppointmentDialog is displayed when
// the user double-clicks on the day area of the control.
//
// Some applications might want to perform a special action when the control is double-clicked.
// In those cases, the AutoAppointmentDialog property should be set to false, which prevents
// the dialog from being displayed on a double-click. When the property is set to true, however,
// the AppointmentDialog is displayed on a double-click. If the cursor position at the time of the
// double-click is over an existing appointment, the dialog fields are pre-populated with that
// appointment's information (Subject, Location, StartDateTime, EndDateTime, etc.) If there
// is no appointment at that location, the dialog is initialized for a new appointment.
this.ultraMonthViewSingle1.AutoAppointmentDialog = enable;
}
'Declaration
Public Property AutoAppointmentDialog As Boolean
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