Version

AutoAppointmentDialog Property (UltraMonthViewMulti)

Returns or sets whether an AppointmentDialog is displayed when double clicking on a Day.
Syntax
'Declaration
 
Public Property AutoAppointmentDialog As Boolean
public bool AutoAppointmentDialog {get; set;}
Remarks

While the UltraMonthViewMulti does not display activity information other than in the form of a tooltip, it may be desirable to have the ability to create new Appointment objects through the control's interface. The property defaults to false. When set to true and the user double clicks on a day, a new instance of the AppointmentDialog is displayed. The dialog is initialized with the Appointment.StartDateTime and Appointment.EndDateTime initialized based on the DayOfWeek.WorkDayStartTime and DayOfWeek.WorkDayEndTime of the DayOfWeek corresponding with the day double clicked.

Example
This example enables/disables the automatic display of the AppointmentDialog when the control is double-clicked on a day.

Private Sub EnableAutoAppointmentDialog(ByVal enable As Boolean)

    '	Use the AutoAppointmentDialog to control whether the AppointmentDialog
    '	is automatically displayed on a double-click.
    If (enable) Then
        Me.ultraMonthViewMulti1.AutoAppointmentDialog = True
    Else
        Me.ultraMonthViewMulti1.AutoAppointmentDialog = False
    End If

End Sub
private void EnableAutoAppointmentDialog( bool enable )
{

	//	Use the AutoAppointmentDialog to control whether the AppointmentDialog
	//	is automatically displayed on a double-click.
	if ( enable )
		this.ultraMonthViewMulti1.AutoAppointmentDialog = true;
	else
		this.ultraMonthViewMulti1.AutoAppointmentDialog = false;

}
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