c# - Open the Outlook meeting window with a button -
i got windows form button (c#). button should open outlook meeting window looks this:
the button has open window user can create meeting. can me ?
you can use winforms application button , execute code on button click:
microsoft.office.interop.outlook.application outlookapplication = new microsoft.office.interop.outlook.application(); ; microsoft.office.interop.outlook.appointmentitem appointmentitem = (microsoft.office.interop.outlook.appointmentitem)outlookapplication.createitem(microsoft.office.interop.outlook.olitemtype.olappointmentitem); appointmentitem.subject = "meeting subject"; appointmentitem.body = "the body of meeting"; appointmentitem.location = "room #1"; appointmentitem.start = datetime.now; appointmentitem.recipients.add("test@test.com"); appointmentitem.end = datetime.now.addhours(1); appointmentitem.reminderset = true; appointmentitem.reminderminutesbeforestart = 15; appointmentitem.importance = microsoft.office.interop.outlook.olimportance.olimportancehigh; appointmentitem.busystatus = microsoft.office.interop.outlook.olbusystatus.olbusy; appointmentitem.recipients.resolveall(); appointmentitem.display(true);
it open appointment window outlook.
to working need reference microsoft.office.interop.outlook
Comments
Post a Comment