More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Outlook Developer News

Updated solution for a custom form list box bound to a keywords field

On an Outlook custom form, if you bind a multi-select list box to a keywords field and populate the list box's rows in code, the list box will have no selected rows when the user reopens a previously saved item, making it look like the user's data has been lost. The Form Controls Demo form has been updated to demonstrate a workaround for this issue.

The problem apparently is that the field value is applied to the control before the list box rows are populated. The solution is to use code in the form's Item_Open event handler to select the appropriate rows after the list rows have been populated, but -- to add to the complications -- it is not possible to access the value of a custom keywords field directly. A workaround for that issue is to bind a text box to the keywords property and read the value from the text box control; see More Fun with Keywords. To simplify the process of finding the row whose text matches a particular value in the keywords field, the code uses a Scripting.Dictionary object to hold the same values as the data used to populate the rows and handle the lookup.

To see the solution, download Form Controls Demo.zip (9kb, 9 Jul 09), unzip it, open the .oft file, and publish that form. Then use the published form to create a new task.

This form also demonstrates two other ways of handling a multi-select list box and two ways to handle option buttons. For more information on those controls and others, see Controls on Outlook Forms.

New hotfix for Outlook 2007 - June 30, 2009

The June 30, 2009, hotfix package for Outlook 2007 fixes several developer issues:

A new ReliableFolderMoveEvent registry entry solves a problem with the BeforeFolderMove event ceasing to fire after a while.

When applications create new categories programmatically, those categories should now still be available after a restart of Outlook.

Custom form icons that weren't displaying on Windows Vista with a high DPI display (for example, 120 DPI) should now display correctly.

In Cached Exchange Mode with the reading pane active, messages based on custom forms that have VBScript code behind them should no longer increase CPU usage or crash Outlook.

The hotfix also resolves a problem with accessing fields in CDO 1.21 applications.

Outlook 2007 Programming chapters available on MSDN

Three chapters from Sue Mosher's Microsoft Outlook 2007 Programming book are now available on MSDN:

Sample code for these chapters is available from the get Sue's code link at the top of the page.

Outlook 2007 performance improvements in SP2

Office 2007 Service Pack 2 targets Outlook with a long list of performance improvements related to .ost and .pst files, startup, shutdown, and folder switching. For details, see:

Outlook 2010: No support for Exchange client extensions

Back before Microsoft extended Outlook with support for add-ins, beginning with Outlook 2000, developers added functionality to Outlook by building Exchange client extensions -- or ECEs -- using the Extended MAPI programming interface. Microsoft in fact built its own ECEs to manage such Outlook features as deleted item recovery.

Beginning with Outlook 2010, ECEs will not load in Outlook, according to Randy Byrne of the Outlook team. Randy provides more background on ECEs in his article for the Outlook team blog, where he explains the options that ECE developers face if they want to redesign their applications to work in Outlook 2010 and asks for your feedback, especially your concerns about parity between ECE and add-in capabilities.

From the Forums

Basic Outlook Techniques
http://www.urbansaletoonline.com
Dear Sir/Madam We are an Chinese Cheap wholesale Company, selling kinds of sport shoes,clothes,jeans,bags,glasses,belt,wallet and so on. We export shoes,clothes and so on to various countries in the world. We have extensive stocks of sport...
http://www.globbizchinaclothes.com
Think Air Max 2009 Shoes Is Best For You Trip.I believe you love this shoe. It is the most comfortable & most durable "Air Max Shoes I have ever work, hands-down.There is a great seelction of colors adn they wear well as leaisure shoes.http://www.globbizchinaclothes.com...
Outlook Form Design
http://www.urbansaletoonline.com
Dear Sir/Madam We are an Chinese Cheap wholesale Company, selling kinds of sport shoes,clothes,jeans,bags,glasses,belt,wallet and so on. We export shoes,clothes and so on to various countries in the world. We have extensive stocks of sport...
Tips To Choosing The Right Computer Chair...
Computer chairs are something that we artlessly can not reside after in today's appointment world. And, we accept to accomplish abiding that they are the appropriate computer chairs for us, or we are just sitting in a armchair that makes us aching day...
Outlook Expert Techniques
http://www.urbansaletoonline.com
Dear Sir/Madam We are an Chinese Cheap wholesale Company, selling kinds of sport shoes,clothes,jeans,bags,glasses,belt,wallet and so on. We export shoes,clothes and so on to various countries in the world. We have extensive stocks of sport...
china wholesale women shoes shop online
Think Air Max 2009 Shoes Is Best For You Trip.I believe you love this shoe. It is the most comfortable & most durable "Air Max Shoes I have ever work, hands-down.There is a great seelction of colors adn they wear well as leaisure shoes.http://www.globbizchinaclothes.com...
Outlook and .NET
http://www.urbansaletoonline.com
Dear Sir/Madam We are an Chinese Cheap wholesale Company, selling kinds of sport shoes,clothes,jeans,bags,glasses,belt,wallet and so on. We export shoes,clothes and so on to various countries in the world. We have extensive stocks of sport...
http://www.globbizchinaclothes.com/wholesale/Men-Clothing-39_p1.html...
The Air Max 2009 Shoes Was Awesome Shoe, Better Then You Expected!! The Shoes Will Make You Great Fit Great Feel".Most Of Nike Fan skeptical about buying Air Max 2009 because of the price, but after trying them on I immediately fell in love with them....
Code Essentials
http://www.urbansaletoonline.com
Dear Sir/Madam We are an Chinese Cheap wholesale Company, selling kinds of sport shoes,clothes,jeans,bags,glasses,belt,wallet and so on. We export shoes,clothes and so on to various countries in the world. We have extensive stocks of sport...
http://www.globbizchinaclothes.com
So Gucci dropped this collaboration album 'BAYTL' with White Girl mob member V-Nasty which everyone thought wasn't such a good idea but Gucci continued with the project which he later came to the light and himself said it was a bad move. So to keep...

Newest Resources

Advanced Outlook regions and Outlook 2010 – first view -- New features and capabilities of Add-in Express advanced form and view regions for Outlook 2010.

SearchGT -- an add-in for Microsoft Outlook 2007 and 2010 that helps you quickly find the email you are looking for. It also shows information on the currently selected email, including a list of other emails you have exchanged with that person.

Outlook 2010 Fast Shutdown feature -- Article with VB.NET and C# code samples that explains how to handle the OnBeginShutdown and OnDisconnection events, blocked in Outlook 2010 by default.

Print all attachments at once using VBA -- Udi Shitrit shows how to use the Win32 to print all of a message's attachments -- no need to know the file types involved.

Outlook 2010 MAPI Reference -- Official Microsoft reference for MAPI development against Outlook 2010. Header files are also available.

Enter the 64 Bit MAPI Dragon -- Outlook 2010 will be available as both a 32-bit and a 64-bit application. Stephen Griffin previews Microsoft's plans and documentation for 64-bit MAPI support.

(Less than) Portable Search Folders -- Stephen Griffin explains why search folders created by Outlook object model code may not always work and offers a partial solution.

How to programmatically select a custom Form Region -- Helmut Obertanner demonstrates, with screen shots, how to create a form region for an Outlook 2007 contact form and add a button to the Ribbon to switch the Inspector display to the region.

Customize the built-in Outlook Select Names dialog (or any other) -- Helmut Obertanner demonstrates how to intercept an built-in Outlook dialog and display instead a custom .NET form.

Outlook Forms Step by Step -- Create a check request form and make it available on the company intranet with this 16-part illustrated guide.

Visual Studio Tools for Office 2007: VSTO for Excel, Word, and Outlook -- Eric Carter and Eric Lippert update their book on creating Visual Studio Tools for Office applications to cover Visual Studio 2008 and Office 2007.

Outlook Redemption version 4.7 -- Adds the ability to enumerate nicknames stored in the .nk2 file and an RDOStore2.Searches collection that represents search folders, plus other new properties, methods, and events and various bug fixes.

Outlook-Redemption discussion list -- Yahoo! group for dicussing issues related to the Outlook Redemption COM library

Making a Custom Ribbon Appear Only for a Custom Outlook Form -- Norm Estabrook from the VSTO team shows how to make custom tabs, groups and controls appear only in cases where the user opens a custom form in Outlook.

LINQ to DASL: Changing Appointments with C# and LINQ -- Short video that demonstrates how to use VSTO Power Tools to perform a DASL query on the Calendar folder using the LINQ syntax and then perform additional string value checking with a regular expression

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

Hot Code Samples

Beginner
Save and remove attachments from email items...
Create task from e-mail message (revised)...
OL2007: Run all rules against inbox
Intermediate
C# AddIn sample: InspectorWrapper & CommandBar...
Reply with Attachments
Send Word document as message
Advanced
Insert user signature with VBA
Set color label on appointment
Set email account signature in Outlook 2003...

OutlookCode RSS Feeds

All OutlookCode.com content

Outlook developer news

New Outlook developer resources

OutlookCode.com forums

OutlookCode.com code samples

OutlookCode.com articles