how to add Quit event handler for the outlook.Applicaton object?

G

Guest

I have written a com-Add in program for outlook. In the OnConnection method
of the Extensibility.IDTExtensibility2 interface, I put a custom menu and
several menu items on the main menu bar.

And I want to unload these custom menu and menu items once the outlook
quits. Unfortunately, it seems like the outlook.application object does not
directly provide a quit event handler?

Any advice on how to resolve the problem would be greatly appreciated!
 
G

Guest

The Outlook.Applicatoion_Quit event is actually quite useless. For a COM
Add-In, you need to unload/delete custom command bars in the OnDisconnection
event.

Have a look at this sample project, it's a great example of best practices
with command bars in Add-Ins:

Items Command Bar:
http://www.microeye.com/resources/itemsCB.htm
 
G

Guest

thanks so much!
--
John 3:16


Eric Legault said:
The Outlook.Applicatoion_Quit event is actually quite useless. For a COM
Add-In, you need to unload/delete custom command bars in the OnDisconnection
event.

Have a look at this sample project, it's a great example of best practices
with command bars in Add-Ins:

Items Command Bar:
http://www.microeye.com/resources/itemsCB.htm

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top