C# examples of Outlook add-in, PowerPoint plugin
for Outlook 2016, 2013, 2010 and 2007
C# Outlook and PowerPoint samples
The C-sharp HowTo examples you will find further on this page work with PowerPoint and Outlook 2016, 2013, 2010, 2007, 2003 and lower. They explain the following aspects of add-in development:
You may also be interested in:
This example demonstrates how to write an Outlook COM add-in in C# that works across all versions from 2000 to Outlook 2016. It shows how to develop command bars and toolbar controls, create Ribbon controls in Ribbon tabs and Outlook menu, make and control Outlook forms, add custom property pages to the Tools | Options and Folder Properties dialogs and more.
Also, please see the complete list of features for Outlook plugin development,
a step-by-step example of building an Outlook COM add-in, and a
video tutorial How to write Outlook 2016 - 2000 plug-in.
How to place a .NET control onto an Outlook toolbar
This sample addin intercepts the SelectionChange event of Outlook Explorer and displays selected properties of the
currently selected MailItem in a UserControl that is added to a new toolbar. Find more about how to
customize Outlook toolbar with .NET controls.
How to handle the ItemSend event
This C# Outlook plugin shows how to handle the ItemSend event in Microsoft Outlook 2016 - 2003.
How to add an Outlook Explorer context menu item
This sample shows how to add a new menu item to the context menu / pop-up menu of Outlook Explorer.
How to work with Outlook Recipients collection
This example unveils the capabilities of the Recipients collection, Recipient and AddressEntry objects. Using
these objects developers can get all necessary information about email recipients, add, remove or modify addresses.
How to exchange data using Attachments collection
Usually Outlook developers use the MailItem.UserProperties collection to send and receive additional information with
email messages. This Outlook C# plugin suggests a slightly different approach – using the Attachments collection and a powerful
.NET feature known as Serialization.
How to intercept all incoming mails in Outlook
How to intercept all incoming mails in different ways: using NewMail and NewMailEx events, Extended MAPI notifications,
by scanning Outlook folders.
How to process Open, Read, Reply, ReplyAll and Send events for a mail, task, appointment items
This C-sharp add-in shows how to use the Outlook Item Events class to process the events of an Outlook item.
How to handle events of an Outlook item
C# code sample explain how to connect to and disconnecting from Outlook events and handle events of an Outlook item correctly.
How to work with Outlook item events
This C# addin for Outlook 2016 - 2000 explains what each of the item events does: InspectorActivate, ExplorerActivate,
ItemSend, BeforeCheckNames, OnReply, OnForward and others.
How to handle events of Outlook items and folders
This sample addin accompanies the blog post that has a closer look at two classes provided by Add-in Express:
the Outlook Folders Events class and the Items Events class:
Outlook items and folders events explained.
How to determine if an item was added to, changed in, or removed from a given folder(s)
This C# Outlook plugin shows on how to use the Items Events class and process the ItemAdd, ItemChange, and ItemRemove events
of the MAPIFolder interface Items collection.
How to determine if an Outlook folder was created, moved or deleted
This example shows how to use the Outlook Folders Events class and process the FolderAdd, FolderChange,
and FolderRemove events of the Folders collection of the MAPIFolder interface.
How to create and delete hidden Outlook items via Extended MAPI
How to move a custom .NET form embedded into Explorer or Inspector from one form region to another
When embedding a custom WinForm form into an Outlook window, you may want to change the layout of the form at run-time.
This sample add-in demonstrates how you can accomplish this task. The user-interface of the plugin shows a command
bar or a Ribbon tab and allows choosing the layout from a combo box. Please note, you may need to change
the references for the project to compile. More about creating Outlook forms and views with advanced regions.
This code sample shows how to hide and show the form embedded into Outlook Explorer and new mail Inspector windows.
How to use events of Reading Pane, Navigation Pane, and To-Do bar
This C# add-in for Outlook demonstrates how you can make use of the events that are missing in Outlook:
Find more about special features to enhance Outlook bar, To-Do bar,
Reading and Navigation panes.
How to switch between the standard Outlook explorer view and your custom .NET form
This Outlook addin example shows how you can switch between the standard Outlook explorer view and your custom WinForm
(ADXOlForm in the WebViewPane layout).
How to share Outlook Views and changes between folders
This Outlook add-in written in C# explains how to create a custom Outlook folder view and apply it to two or more folders.
How to customize Outlook view programmatically using C#
Learn how you can create a custom Outlook view for the Contacts folder and add your own button to the Outlook Ribbon.
How to handle the SlideShowBegin event on PowerPoint presentation objects
This PowerPoint C# addin shows how to handle the SlideShowBegin event of presentation objects.
How to create a scheduled PowerPoint presentation
This C# PowerPoint code sample demonstrates how to build a scheduled PPT presentation to enable the user to schedule when the
presentation slides should be shown and for how long. You can find a detailed description of this sample on our technical blog:
How to create a scheduled PPT presentation.