Microsoft KB Archive/319932

= OL2002: A New Custom Form Opens Behind Outlook 2002 =

Article ID: 319932

Article Last Modified on 8/16/2002

-

APPLIES TO


 * Microsoft Outlook 2002 Standard Edition

-



This article was previously published under Q319932



SYMPTOMS
If you open a custom form that uses CDO (Collaboration Data Objects) in Outlook 2002, the custom form appears in the background and Outlook 2002 remains in the foreground.



CAUSE
This problem occurs because the CDO methods that activate the dialog box with the following message cause a z-order issue that resets the focus to the Outlook Frame window:

A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this

If the Outlook object model activates the same dialog box with the same message, the problem does not occur.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft Office XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

307841 OFFXP: How to Obtain the Latest Office XP Service Pack

The English-language version of this fix should have the following file attributes or later:   Date           Time  Version    Size       File name ---  08-Mar-2002  19:18                  2,633,420  Outlook.msp 08-Mar-2002 19:18                  4,644,728  Outlook_admin.msp After the hotfix is installed, the following files will have the listed attributes or later:   Date         Time   Version             Size   File name --  23-Jan-2002  13:32  10.0.3716         342,344  Exsec32.dll 11-Jan-2002 15:59  10.0.3708         534,856  Outlcm.dll 07-Mar-2002 21:35  10.0.3905       6,306,120  Outllib.dll 20-Dec-2001 09:44  10.0.3618          92,488  Outlmime.dll 02-Feb-2002 16:14  10.0.3729         117,064  Outlph.dll 29-Nov-2001 02:21  10.0.3527          47,432  Recall.dll Additionally, you must enable the following registry key for this fix

HKCU\Software\Microsoft\Office\10.0\Outlook\Options CDO_Focus = 1

where CDO_Focus is a DWORD value.



WORKAROUND
To work around this problem, use the Outlook object model in your custom forms for the property that you need instead of using CDO. The following example demonstrates the use of the Outlook object model for the property instead of CDO:

Using CDO:

MAPI.Session.CurrentUser

Using the Outlook object model:

Item.Session.CurrentUser



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft Office XP Service Pack 2 (SP-2).

Keywords: kbbug kbfix kbofficexppresp2fix kbofficexpsp2fix KB319932

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.