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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Item Collection and a ListView (Vb.Net)



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old January 21st 09, 04:41 PM posted to microsoft.public.outlook.program_addins
Craig Buchanan[_2_]
external usenet poster
 
Posts: 12
Default Item Collection and a ListView (Vb.Net)

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


All times are GMT +1. The time now is 09:00 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.