A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Accessing another custom form and the associated custom property



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 27th 08, 04:11 PM posted to microsoft.public.outlook.program_forms
melon
external usenet poster
 
Posts: 13
Default Accessing another custom form and the associated custom property

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  
Old December 1st 08, 02:41 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Accessing another custom form and the associated custom property

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
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 03:40 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.