Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook automation revisited
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Outlook automation revisited
Miscellaneous
Thread ID:
00872313
Message ID:
00872313
Views:
55
This probably belongs in the API section as well, but whatever..

To review, I have an e-mail address field on a form whose right-click event will open up a new Outlook message to that recipient. The automation part of it works like a charm. However, there are times when the new Untitled message window will flash in the taskbar and not be the foreground window and other times when the new message will indeed get the foreground (which is the desired result).

Using both the mail item's Display() and Activate() methods produces the same results. Is there a way to make sure that the new message window always hits the foreground and has focus? I'm assuming that the WinAPI has to come into play for this..

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Next
Reply
Map
View

Click here to load this message in the networking platform