Problem opening Outlook email window via OLE

D

Dan Cooperstock

I'm trying (from a PowerBuilder program) to connect to Outlook, create an
email (including To / From / Subject and a Body) and have Outlook display
the email in a normal email sending window. I need it displayed because the
user of the program should be able to edit it further before sending it.

The problem I have encountered is that while this always more or less works,
in that the email window is created, and has the right contents, sometimes
the email window appears behind the PowerBuilder program rather than in
front of it!

In my experience, using Windows XP with the XP look, there are two main
situations in which the Outlook email window appears behind my PowerBuilder
application's window:

1) If there is already an Outlook email window open (not the main Outlook
window, but rather a single email).

2) If you have Auto-hide set on your Windows Taskbar.

Has anyone seen this behaviour before, or have any idea whether there is a
way to work around it?
 
Top