Hi Andrew,
Thanks for the tip, unfortunately it didn't do what I needed. It seems to do the same as oMailItem.Display() which I'm already doing. What I'm looking for is after creating an Email is bringing the Email Window to the front. Currently after creating the Email I can see it in the windows task bar. Essentially what I want is for the Email to be Maximized after it's displayed.
Thanks,
Gavin...
>Hi Gavin,
>
>If you have a reference to your message object in loMessage, then the following should do what you need:
>
>
loInspector = loMessage.GetInspector
>loInspector.ACTIVATE()
>
>Cheers,
>
>Andrew
>
>>Hi All,
>>
>> I have a VFP6.0 application which creates and displays and OutLook Email Message. What I need is for the Email to become the current window. Is there a way to bring the Email Window to the front? I imagine it's a case of obtaining the handle of the Email Window and using some API function to bring it to the front, I'm just not sure how to do it though.
>>
>>Thanks,
>>Gavin...