VasquezPL 0 Junior Poster

Hi guys, I need your help.
I tried to find out sth via google, no luck.

I need to create an appointment "on behalf of"

I know how to make an appointment in my personal calendar.
But how to do that in other calendar (where I have access rights)?
Thx in advance for your help!

void create_appointment()
        {
            Outlook.Application outlookApp = new Outlook.Application(); // creates new outlook app
            Outlook.AppointmentItem oAppointment = (Outlook.AppointmentItem)outlookApp.CreateItem(Outlook.OlItemType.olAppointmentItem);
            DateTime date1 = dateTimePicker1.Value.Date + TimePicker1.Value.TimeOfDay;
            DateTime date2 = dateTimePicker1.Value.Date + TimePicker2.Value.TimeOfDay;
            oAppointment.Start = Convert.ToDateTime(date1); // Set the start date 
            oAppointment.End = Convert.ToDateTime(date2);
            oAppointment.Subject = SUBJECT_APPOINTMENT();
            oAppointment.Body = "SYSTEMS: " + SystemBox.Text + Environment.NewLine;
            oAppointment.Body += "DESCRIPTION: " + Environment.NewLine + EngBox.Text;   
            oAppointment.Importance = Outlook.OlImportance.olImportanceHigh;
            oAppointment.Display(false);
            oAppointment.Save();
        }