Correct Usage of the Forms File and Object ID

Microsoft Outlook 2003, Microsoft Outlook 2007, and Microsoft Outlook 2010 describe forms differently. These versions use different IDs for native Outlook controls. You must create a different description of the form for each version that your implementation uses. Each form uses the same layout description but the native Outlook control ID is different.

For example, assume you create code for Microsoft Outlook 2007. For this code to work correctly with Microsoft Outlook 2003, you must replace object IDs that are native in Microsoft Outlook 2007 with object IDs that are native in Microsoft Outlook 2003. In the example in this topic, you must replace the IDs that are in the hidden section and in the ID of the body control.

The code in this topic supports Microsoft Outlook 2007, so you must add it to the forms_12.xml file. If you use Microsoft Outlook 2003, then you use the forms_11.xml file and you use Object IDs that are native to Microsoft Outlook 2003.