Posts Tagged ‘VB.NET’

How to create an Outlook task, appointment or note from an email

In the first installment of this series, Customizing Outlook Ribbon and command bars in a single add-in, we took the first step in building the Ty Actions Outlook Add-in. If you followed along, you have a beautiful custom Outlook ribbon and a custom a command bar that will impress your users... Read the rest of this entry →

Creating add-ins for Outlook: custom ribbon & command bar in one project (C#, VB.NET)

Despite what some promulgate as software development best practices, I like to start my projects by sketching what I envision. I don't conduct interviews. I don't write requirements. I thumb my nose at all type-A project manager types and don't make a plan... Read the rest of this entry →

How To: Set a custom icon for an Outlook folder in the Navigation Pane

Today I want to show you one of the new features Outlook 2010 brought to programmers. Now Outlook allows setting custom icons the Navigation pane folders. The Outlook Object Model provides a special method for this task – SetCustomIcon. So, let's start our journey into the Outlook programming world ... Read the rest of this entry →

How To: Create a new distribution list item in Outlook

Sometimes Outlook users need to send their e-mails to the same recipients. The Outlook Object Model provides the DistListItem class exactly for this task. The distribution list represents a group of contacts that are related in some way... Read the rest of this entry →

How To: Remove a Personal Folders file from the current Outlook profile

In my previous post we discussed how to add a new personal folders store to the Outlook profile. Now I would like to reveal the opposite action – how to remove a personal folders store... Read the rest of this entry →

How To: Create a new Outlook Personal Folders store and add it to the current profile

Sometimes developers need to add an additional store in Outlook for archiving e-mails, making backup copies of email conversations etc. The AddStore method of the Namespace class of the Outlook Object Model provides the required functionality... Read the rest of this entry →

How To: Use Restrict method to retrieve Outlook Task items

Today I would like to show you how to filter task items using the Restrict method of the Items class which the Outlook Object Model provides for developers... Read the rest of this entry →

How To: Use Outlook Find and FindNext methods to retrieve Task items

In my previous articles I described how to use Find and FindNext methods to retrieve Outlook mail items, contact and calendar items. Now I am going to show you how to apply the Find and FindNext methods for Outlook task items... Read the rest of this entry →

How To: Create a new recurrent Task item in Outlook

There are two item types that can be recurrent in Outlook: appointment and task items. In one of my earlier posts described the first one. Now I am going to tell you the story about task items... Read the rest of this entry →

How To: Create a new Task item in Outlook

In my previous posts I have described how to create a new e-mail message, contact and appointment items. Today I am going to cover task items... Read the rest of this entry →

How to load your Office COM add-in on condition

A typical problem is: how to unload my add-in if a custom condition is met. This blog post is about how to solve this problem.... Read the rest of this entry →

How to navigate through the Microsoft Office Command Bar system

There are 4 instances of the command bar button "Save" (Id=3) in Excel. Two of them are best known: a button on the Standard commandbar and an item in the File menu. The other two instances are buried in the command bar system... Read the rest of this entry →

HowTo: get the actual type name behind System.__ComObject with Visual C# or VB.NET

Developers accessing Application.Selection and Application.ActiveSheet in Excel or Explorer.Selection.Item(i), Folder.Items(j), Inspector.CurrentItem in Outlook do know the notorious "System.__ComObject" string. It indicates that the actual type of the COM object is unknown... Read the rest of this entry →

How to handle Outlook item’s Reply event: replying from a context-menu

Let's consider the case then the user replies to an Outlook e-mail from the context menu. First off, you can reply to one item only; that item is selected or right-clicked in an explorer window or is opened in an inspector window.... Read the rest of this entry →

How to handle Outlook item’s Reply event: tracking Inspector.Activate

In my previous article I explained the Reply event and parameters it provides. Also, I described a class handling this event in a version-neutral way. Now what I want is to show how you intercept Outlook's Inspector.Activate event.... Read the rest of this entry →

How to handle Outlook item’s Reply event: tracking Explorer.SelectionChange

Add-in Express implements a version-independent approach to handling events of an Outlook item. The class implementing this is called ADXOutlookItemEvents. I recommend that you regard this class as a set of event handlers; you can implement several such classes to follow several business rules... Read the rest of this entry →

Have any questions? Ask us right now!