Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...