masj78 Posted August 12, 2003 Posted August 12, 2003 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 Quote
Administrators PlausiblyDamp Posted August 12, 2003 Administrators Posted August 12, 2003 If you are using the VB.Net TreeView it has undergon some changes since the VB6 version. The new type is 'TreeNode' Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
masj78 Posted August 14, 2003 Author Posted August 14, 2003 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. Quote
Recommended Posts