Knowledge Base

XCLN: EFD, Address Book Dialog Displayed in Background

Article ID: 146550

Article Last Modified on 10/28/2006


APPLIES TO


This article was previously published under Q146550

SYMPTOMS

When you call the objSession.AddressBook method in the Microsoft Object Linking and Embedding Messaging interface from a Microsoft Visual Basic (VB) 4.0 16 bit extended Microsoft Electronic Forms Designer (EFD) 4.0 form, the address dialog might appear in the background and not have the focus during runtime.

WORKAROUND

The following code can be used as a workaround:
   Dim frmhwnd As Long
   frmhwnd = Me.hWnd
   Dim objrecipcoll As Object
   Set objrecipcoll=mfobj.Session.AddressBook(Title:="List of Addresses",_
       forceResolution:=True, recipLists:=1, toLabel:="&Names", _
       parentwindow:=frmhwnd)
				

Keywords: kbusage KB146550