c# - Open the Outlook meeting window with a button -


i got windows form button (c#). button should open outlook meeting window looks this:

outlook meeting window

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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -