Hello,
I'm currently writing an Outlook addin in C#.
The idea is to display a popup window when a mail is opened, depending
on some criterias.
Therefore, i registered an event handler for the New Inspector event
in an init function.
When i open a mail, the event is fired but if the event handler
display my popup window (or worse, any modal window like a message
box) the event is never fired anymore during the session.
If the handler doesn't open the popup window, the even will fire until
its handler displays the popup...
I'm also using selection change events to cope with preview pane
readings.
If the selection changed event handler displays the popup window, then
i'll never get the new inspector event to be fired :( but the
selection changed keeps working fine...
If someone could help me about this, it would be great...
Thanks,
Mikael
Mike Timms - 03 Nov 2003 14:42 GMT
Sounds like the source object for your event is getting cleaned up
prematurely. See for example the thread:
http://groups.google.ca/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&edition=ca&threadm=bX
JQa.55%24Py3.5555428%40newssvr14.news.prodigy.com&rnum=1&prev=/groups%3Fq%3Dmike
%2Btimms%2Bgroup:microsoft.public.outlook.program_addins%2Bgroup:microsoft.publi
c.outlook.program_addins%2Bgroup:microsoft.public.outlook.program_addins%26hl%3D
en%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26group%3Dmicrosoft.public.outlook.program_
addins%26edition%3Dca%26scoring%3Dd%26selm%3DbXJQa.55%2524Py3.5555428%2540newssv
r14.news.prodigy.com%26rnum%3D1
If that's not the case maybe you can post a code sample.
- Mike
> Hello,
>
[quoted text clipped - 25 lines]
>
> Mikael