Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / November 2003

Tip: Looking for answers? Try searching our database.

New Inspector Event not always fired

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mikael Alhadeff - 03 Nov 2003 11:42 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.