Simulate Find

  • Thread starter Thread starter dorutzu
  • Start date Start date
D

dorutzu

Hi!

I have an Outlook addin with a custom button in a toolbar. When I press
this button, I would like to search for certain mailitems (using
AdvancedSearch), and display them in a list (view)...something similar to
what Find does, but programatically.
Any idea how this could be done (the display I mean...the search works just
fine)?

Thanks,
Doru
 
The results of a Search object are, oddly enough, stored in a Results
collection. That collection has Count and Item properties that can be used
in a For loop, it also has a full set of the Get functions (GetFirst,
GetLast, GetNext and GetPrevious).

Iterate that collection and display whatever information you want from each
item in the collection in a list or grid or whatever in a custom form you
design.
 
Back
Top