Re: Strange Outlook activation problem
- From: "Ulrik" <nospam>
- Date: Wed, 12 Mar 2008 14:58:15 +0100
Thanks for your answer
I have found the bug: The bug was caused by a DoEvents in the
following event which caused the bug. After removing the DoEvents
it works perfectly. :-)
Private Sub m_objExpl_Activate()
On Error Resume Next
DoEvents
Call RefreshToolbar(m_objExpl.CurrentFolder)
End Sub
Rgds Ulrik
"Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx> wrote in message
news:eAFeEREhIHA.1212@xxxxxxxxxxxxxxxxxxxxxxx
There have been a few versions of ItemsCB out there and no one can know
how you've modified the copy you used. You will have to see yourself
what's happening and what your event handlers are doing. You can also try
using a bare-bones addin that doesn't use wrapper classes and such to see
how events are fired and what happens in that case and compare things to
how they happen with your addin.
--
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
"Ulrik" <nospam> wrote in message
news:O7qdIQBhIHA.536@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have written a com-addin with the Explorer framework based on Randy
Byrnes ItemsCB
Now have users experienced a strange bug:
Steps to reproduce:
1) In Outlook they have a task list opened with a detailed list view with
the Complete box visible. "Allow in-cell editing is checked
and the "Show new item row" is unchecked.
2) One task in the list is selected and has the Complete box checked.
3) They align another application next to the Outlook window and
activates this application.
4) Returns to Outlook and tries to uncheck the task directly *without*
activating Outlook first.
5) This fails, and the Complete field remains checked, the "uncheck"
fires first only when they click on the item second time.
Sometimes a new blank tasktem is displayed when they ty to check the
Complete field without activating Outlook first.
This worked perfectly before they had the com-add in installed. I use the
Explorer wraps in the code to hide/unhide a commandbar. I' ve tried to
disable calls in the Explorer events to RefreshToolbar procedure, with
no luck.
Any ideas?
The events are fired as follows when trying to uncheck it directly:
========================
m_objExpl_Activate
m_objExpl_Activate
m_objExpl_SelectionChanged
m_objExpl_Activate
m_objExpl_Activate
m_objExpl_SelectionChanged
m_objExpl_Activate
m_objExpl_Activate
Outlook 2003 English version SP3
Windows XP English version SP2
Rgds Ulrik
.
- References:
- Strange Outlook activation problem
- From: Ulrik
- Re: Strange Outlook activation problem
- From: Ken Slovak - [MVP - Outlook]
- Strange Outlook activation problem
- Prev by Date: Re: Strange Outlook activation problem
- Next by Date: Re: Asymmetric Encryption in VBA
- Previous by thread: Re: Strange Outlook activation problem
- Index(es):
Relevant Pages
|