Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Event trigers only first two times from FromRegion. (http://www.outlookbanter.com/add-ins-outlook/102081-event-trigers-only-first-two.html)

Lukasz April 23rd 10 06:57 PM

Event trigers only first two times from FromRegion.
 
You got it again. I added RemoveHandler to the FormRegionClosed event and there's now only one call to my event handler.

Thank you very much.

Lukasz

kenslovak wrote on Fri, 23 April 2010 12:40
Are you removing the handler where the item that was showing the form region
is no longer current, and adding it back for any new items? When it fires
more than once is it for the same item each time? Any possibility that
you've added the same handler more than once for the same item?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Lukasz" lukaszmail[at]gmail[dot]com wrote in message
...
That was it. Thank you Ken. It even took care of the COM error. My woes
are not over though. Now the event handler executes between two and four
times whenever I click on the Reply. Any idea why?

Thanks,

Lukasz




All times are GMT +1. The time now is 12:32 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com