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