Displaying Root Outlook Folders Using CDO with VB.NET

masj78

Active member
Joined
Aug 8, 2003
Messages
31
Location
Harrogate, UK
Using CDO Library 1.21 and VB.NET I am trying to create in my Application the Root folder view of Outlook, using a TreeView.
My variables are as follows:

Dim objStore As MAPI.InfoStore
Dim objFolder As MAPI.Folder
Dim nodStore AS MSComctLib.Node

The system does not seem to recognise MSComctLib.Node as a recongnisable object. I am assuming that this declaration is to create a root node to add the folders. It may be a function of VB6 as I am using a CDO programming book example which uses VB to guide me. I am not sure how to create the root node correctly in VB.NET.

Any IDEAS anyone

Cheers

Mike Jones
 
Thanks for that! What I needed instead of:

Dim nodStore AS MSComctLib.Node

was the declaration:

Dim nodeStore As New System.Windows.Forms.TreeNode

Worked a treat. Any one reading this who needs to know how to expose the OutLook Info Stores, feel free to get in touch.
 
Back
Top