Hi there
I'm trying to add folders into .Net, but failing everytime.
here is my code.
Dim objOutlook As New Outlook.Application
Dim objNS As Outlook._NameSpace = objOutlook.Session
Dim objTasks As Outlook.MAPIFolder = objNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
Dim objFolder As Outlook.MAPIFolder = _
objTasks.Folders.Add("Personal Tasks", Outlook.OlDefaultFolders.olFolderInbox)
I've copy interop.outlook and pasted it into the BIN folder and referenced it via the program.
Still it wont add the folder. Any ideas?
Lee
I'm trying to add folders into .Net, but failing everytime.
here is my code.
Dim objOutlook As New Outlook.Application
Dim objNS As Outlook._NameSpace = objOutlook.Session
Dim objTasks As Outlook.MAPIFolder = objNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
Dim objFolder As Outlook.MAPIFolder = _
objTasks.Folders.Add("Personal Tasks", Outlook.OlDefaultFolders.olFolderInbox)
I've copy interop.outlook and pasted it into the BIN folder and referenced it via the program.
Still it wont add the folder. Any ideas?
Lee