Hello,
I am creating an appointment in code and I want to automatically enter edit mode. Here is my code so far:
_CalInfo.Appointments.Add(appt);
_CalInfo.SelectedAppointments.Add(appt);
However the appointment is never selected, so the EnterEditMode does not happen.
Thanks for any help!
Bob
Thanks Aaron. However I am trying to edit the appointmnet without the Appointment Dialog.
I am able to do this manually by clicking on the appointment bar and they typing directly on the bar.
Thanks again Aaron, I should have made that more clear.
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)
CheersAaron