PC Review


Reply
Thread Tools Rate Thread

Accessing another custom form and the associated custom property

 
 
melon
Guest
Posts: n/a
 
      27th Nov 2008
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?
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      1st Dec 2008
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" <(E-Mail Removed)> wrote in message
news:f86a6342-5bb1-4812-a6b4-(E-Mail Removed)...
> 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?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
workflow: custom object instance as a parameter or property in custom activity Bandu Microsoft Dot NET Framework 0 2nd Sep 2007 07:41 PM
workflow: custom object instance as a parameter or property in custom activity Bandu Microsoft C# .NET 0 1st Sep 2007 07:16 PM
Strong typing and accessing a custom property on a hosted HTML element Paul Hemans Microsoft C# .NET 0 21st Mar 2006 04:00 AM
Can you link a custom property to an Excel custom header text? =?Utf-8?B?TG91RXJj?= Microsoft Excel Setup 0 8th Nov 2005 04:58 PM
Accessing Property of Custom Type =?Utf-8?B?Um9uaW4=?= Microsoft Excel Programming 1 4th Aug 2005 09:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:13 PM.