What is your code that uses button click?
Is there a particular reason why you use sync object with thee index 3/ Have
you tried 1 (which in most cases is "Send/Receive All")?
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Alban" wrote in message
...
1/ I do not have such a function, am I missing a reference?
2/ what do you mean by "which also runs the message loop"?
3/ Apparently, it is not related to the loop. I have made a windows
application and launch the previous code at the click of a button. No
event
is catched, whatever event I try to catch from outlook.
Note: I installed outlookspy toolbar I could see outlook event firing from
action generated by my code while my code could not see them
"Dmitry Streblechenko" wrote:
Does it work if you replace the DoEvents loop with a call to MessageBox()
(which also runs the message loop)?
--