A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Strange Outlook activation problem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 12th 08, 08:38 AM posted to microsoft.public.outlook.program_vba
Ulrik
external usenet poster
 
Posts: 2
Default Strange Outlook activation problem

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


  #2  
Old March 12th 08, 02:23 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Strange Outlook activation problem

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
...
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


  #3  
Old March 12th 08, 02:58 PM posted to microsoft.public.outlook.program_vba
Ulrik
external usenet poster
 
Posts: 2
Default Strange Outlook activation problem

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]" wrote in message
...
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
...
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




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem with Outlook 2003. Michael Outlook - General Queries 4 May 18th 07 04:26 AM
Strange Problem with Outlook 2003 remith Outlook - Installation 0 April 13th 07 08:30 AM
Strange problem with Outlook 2007 matt Outlook - Installation 0 April 10th 07 11:13 PM
Strange problem with Outlook & Windows XP Justa Lurker Outlook - General Queries 0 January 13th 07 03:06 AM
Very strange problem with Outlook folders mgaines Outlook - General Queries 3 November 16th 06 06:59 AM


All times are GMT +1. The time now is 12:56 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-2025 Outlook Banter.
The comments are property of their posters.