.net - VSTO - Outlook event handler in C# -
I need to display a custom form instead of the default inspector form for a fixed appointment item. I want to do it in C #
There is a nice tutorial but it is using VB, and I want to use C #. So I have translated the code to C # and I have a problem where I have to override the event handler for Who is translated as: (Please note that I have tried it with and without any However, we need to register that this is with the incident, so I have put this code: But I can not compile it as I get the error: (BTW suggests my code work and still I'm still stuck.) open for appointments (which is mcai Code>). In the above tute, they say to do the following in VB:
Private sub tyai_Open (cancel byRep Boolean) tyai handles. Open Cancel = True and All
Private Zero mcAI_Open (Cancel Out Arrow) {Cancel = truth; } outside and riff parameters, and without Is also the first even)
mcAI.Open + = New Microsoft .Office.Interop.Outlook.ItemEvents_10_OpenEventHandler (mcAI_Open);
A surcharge match account for 'MCAI Open' Any ideas about how to register my work for Microsoft.Office Interop.Outlook.ItemEvents_10_OpenEventHandler ' open AppointmentItem ? Thanks in advance.
Theoretically, this should work:
Private Zero mcAI_Open (ref bool Cancel) {Cancel = true; }
Comments
Post a Comment