![]() |
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
|
|||
|
|||
![]()
I am using a ListView with checkboxes as a metaphor for working with a
collection (MapiFolder.Items) of ContactItems in a Wizard that I am building--I want to make sure that I'm using 'best practices' when 'binding' the two objects together. I use a form-level property to store the collection of ContactItems which have been filtered according to a user's input. I manually bind selected properties of (i.e. create ListViewItem and SubItems) this collection to the ListView, as there isn't a way to do this declaratively. I use the EntryId as the Tag for the ListViewItem. Currently, if I need to make change to a ContactItem that has been created in the ListView (e.g. changing the email address), I use the EntryID to locate the ContactItem in the MailFolder.Items collection using the Find method. It appears that the Index to the MapiFolder.Items collection is the MailItem's (ContactItem) Subject property. I would use this, but I'm a bit concerned that two ContactItems have the same Subject (I live in MN and there are a lot of Andersons...). Is there a better pattern to use? Thanks for your time, Craig Buchanan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Links Collection | Michele | Outlook and VBA | 2 | January 12th 09 06:45 PM |
adding a distlist item to the links collection | Michael Kensy | Outlook and VBA | 10 | December 6th 07 05:49 AM |
get addresses from a collection of emails | marek | Outlook - Using Contacts | 2 | October 3rd 07 05:25 PM |
outlook contacts collection | Dick | Outlook and VBA | 1 | January 3rd 07 01:40 PM |
how to use the CommandBars Collection | Jim B | Outlook - Using Forms | 0 | January 22nd 06 12:46 AM |