![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Supposed I have a ItemA created with custom Form1, and ItemB created
with Form2. Is it possible for ItemB to access user properties on ItemA? If so, how do I open the ItemA in ItemB? Is there any item identifier that I can use? |
Ads |
#2
|
|||
|
|||
![]()
There are a few ways.
If the ItemB is selected you can access the ActiveExplorer.Selection collection. If the item is opened already you can iterate the Inspectors collection and see which open Inspectors have your custom MessageClass or some identifying tag and get a handle to the item that way. If you know the folder the items would live in you can access the Items collection of that MAPIFolder object and iterate that until you find the item by MessageClass or some other identifier. If you know ahead of time which items you might want to access you can store their EntryID property and use NameSpace.GetItemFromID(EntryID) to get the item. Once you have the item you can access its UserProperties collection. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "melon" wrote in message ... Supposed I have a ItemA created with custom Form1, and ItemB created with Form2. Is it possible for ItemB to access user properties on ItemA? If so, how do I open the ItemA in ItemB? Is there any item identifier that I can use? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Item_Send: How to generate a non-custom form message from custom f | supportusa | Outlook - Using Forms | 3 | April 9th 07 10:37 PM |
Accessing a custom form via web page | Annzka | Outlook - Using Forms | 2 | May 24th 06 08:43 AM |
Emailing a contact vCard with custom form loses all custom info | Kim | Outlook - Using Contacts | 7 | April 27th 06 12:21 AM |
"Resize with form" property on custom controls | Vaughan | Outlook - Using Forms | 2 | February 6th 06 08:03 PM |
Cannot programmatically open custom message in custom form | ms | Outlook - Using Forms | 1 | January 20th 06 03:01 PM |