B
Bina
I have a folder that I have temporarily created in the deleted items folder
in order to display an email message programatically. When I delete this
folder using the following code, a window with the message "Deleting items
from the [Folder Name] folder" pops up. How do I supress this window or at
least minimize it?
Here's the code below:
Dim mOutlookAppl = New Microsoft.Office.Interop.Outlook.Application
mOutlookAppl.GetNamespace("MAPI").Logon()
Dim myfolder As Microsoft.Office.Interop.Outlook.MapiFolder
myFolder = mOutlookAppl.GetNamespace("MAPI").GetDefaultFolder _
(Outlook.OlDefaultFolders.olFolderDeletedItems). _
Folders.Add("My New Folder")
....do some stuff...
myFolder.Delete()
Thanks!
Bina
in order to display an email message programatically. When I delete this
folder using the following code, a window with the message "Deleting items
from the [Folder Name] folder" pops up. How do I supress this window or at
least minimize it?
Here's the code below:
Dim mOutlookAppl = New Microsoft.Office.Interop.Outlook.Application
mOutlookAppl.GetNamespace("MAPI").Logon()
Dim myfolder As Microsoft.Office.Interop.Outlook.MapiFolder
myFolder = mOutlookAppl.GetNamespace("MAPI").GetDefaultFolder _
(Outlook.OlDefaultFolders.olFolderDeletedItems). _
Folders.Add("My New Folder")
....do some stuff...
myFolder.Delete()
Thanks!
Bina