Infragistics(R) NetAdvantage(R) Windows Forms
DisplayAppointmentDialog(Appointment) Method
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinSchedule Namespace > UltraCalendarInfo Class > DisplayAppointmentDialog Method : DisplayAppointmentDialog(Appointment) Method

appointment
Appointment whose information will be displayed in the dialog

Glossary Item Box

Display an Appointment Dialog for an existing Appointment.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub DisplayAppointmentDialog( _
   ByVal appointment As Appointment _
) 
C# 
public void DisplayAppointmentDialog( 
   Appointment appointment
)

Parameters

appointment
Appointment whose information will be displayed in the dialog

Remarks

This overload of the DisplayAppointmentDialog creates a new AppointmentDialog for an existing Appointment object if it is not currently being displayed if the BeforeDisplayAppointmentDialog event is not cancelled. If the Appointment is currently being displayed in a dialog, no events will be raised.

Example

This example uses the DisplayAppointmentDialog method to display the appointment dialog, set up for a new appointment spanning from 9AM to 9:30AM.

Visual BasicCopy Code
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.IO
Imports System.Globalization

    Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click

			'	Display the AppointmentDialog
        Me.ultraCalendarInfo1.DisplayAppointmentDialog(DateTime.Today.Date.AddHours(9.0F), DateTime.Today.Date.AddHours(9.5F), False)

    End Sub
C#Copy Code
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.IO;
using System.Globalization;

		private void button1_Click(object sender, System.EventArgs e)
		{

			//	Display the AppointmentDialog
			this.ultraCalendarInfo1.DisplayAppointmentDialog( DateTime.Today.Date.AddHours( 9.0F ), DateTime.Today.Date.AddHours( 9.5F ), false );

		}

See Also

Copyright © 1996-2012 Infragistics, Inc. All rights reserved.