Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
How to programmically put an appointment into edit mode
posted

Hello,

I am creating an appointment in code and I want to automatically enter edit mode.  Here is my code so far:

appt = new Appointment(dtBegin, dtEnd);

_CalInfo.Appointments.Add(appt);

appt.Selected =
true;

_CalInfo.SelectedAppointments.Add(appt);

this.ultraDayView1.PerformAction(UltraDayViewAction.EnterEditMode);

 However the appointment is never selected, so the EnterEditMode does not happen.

 Thanks for any help!

Bob

 

 

Parents
  • 2094
    Offline posted

    This should do the trick (VB code but I am sure you won't have any problems converting) 

    Dim appt as Appointment = New Appointment(dtBegin,dtEnd)
    me.CalendarInfo1.Appointments.Add(appt)
    Me.CalendarInfo1.DisplayAppointmentDialog(myAppointment)

    Cheers
    Aaron

Reply Children
No Data