Fill Listbox with All Outlook2000 Contact Fields

  • Thread starter Hans-Peter Spieler
  • Start date
H

Hans-Peter Spieler

Hi,
in a VB6 application I would like to fill a Listbox with all Contact-Fields
from Outlook2000 Contacts. The VB6 Application is to use (if possible) the
Outlook Object Model.
Thanks a lot,
Hans-Peter
 
K

Ken Slovak - [MVP - Outlook]

You want to add all the fields for contacts to a listbox? That's a lot of
fields to display in that control, I'd probably use a grid control instead
myself.

So what's the question? Once you get each field and convert its data into
string values if necessary (see the Object Browser to see a list of all
contact fields) you just add them to the listbox.
 
H

Hans-Peter Spieler

You want to add all the fields for contacts to a listbox?
Listbox or Grid ;-)
So what's the question?
The Listbox/Grid lists the Field-Names, not the Field-Data.

Example:

FirstName
LastName
....
....

The User then selects the required Fields to generate an individual
Address-Format
in my VB6-Application.

Hans-Peter Spieler
 
K

Ken Slovak - [MVP - Outlook]

I still don't understand what you are asking for.

If you have the field names and a ContactItem object it's simple to get the
values for any of that contact's properties and add them to the grid or
listbox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top