VB.Net and ItemAdd event
-
venerdì 15 aprile 2011 12:27
Hi, I'm writing a little vb.net application that manage incoming email from outlook COM.
When i only handle the ItemAdd, there is no problem, but when i try to rescan the folder from within the function handler, my application freeze.
Here the code:
Private Sub oNewMail_ItemAdd(ByVal Item As Outlook.MailItem) Handles oNewMail.ItemAdd processIncomingEmail(Item) checkMailFolder() End Sub Private Sub checkMailFolder() Dim items As Outlook.Items Dim item As Outlook.MailItem items = Me.objOL.Session.Folders("Cassetta postale - Gestione WAS").Folders(Me.sNomeCartella).Items 'other code End Sub
The problem is when i try to set the "items" object.
Thanks in advance
Tutte le risposte
-
venerdì 15 aprile 2011 14:33
Shadow_Silver wrote:
[...]Questo forum fa parte della gerarchia italiana e i post devono essere nella sola lingua italiana.
Inoltre questo forum è specifico di WCF e WF, perciò l'argomento outlook è totalmente off topic.
Sei pregato di postare in italiano ed in un forum più appropriato (vb.net in assenza di uno specifico di outlook).
Grazie e saluti
Raffaele Rialdi http://www.iamraf.net
Weblog: http://blogs.ugidotnet.org/raffaele
Microsoft MVP profile https://mvp.support.microsoft.com/profile/raffaele
UGIdotNET - http://www.ugidotnet.org/
Raffaele Rialdi [MVP] My articles and videos: http://www.iamraf.net Italian blog: http://blogs.ugidotnet.org/raffaele

