Sorry, I'm out ideas. But my guess is that the HWND value is wrong for some reason.
>My problem is that it works in vista with no problems and did no first off. But on any XP machines it is not working, it either takes an image of the application i am calling it from or it takes an image that is just a black bar
>~M
>
>>No idea, but Vista imposes some problems. I suggest that you check Doug Hennig's blog entries, he has spent a lot of time getting VFP to work with Vista. Here is one URL to start from:
http://doughennig.blogspot.com/2007/04/elevating-tasks-in-vista.html>>
>>>Although this works on my machine, Vista, it does not work in XP, there i just get screen shots of the application, it ignores the IE window. any ideas? every line of code is the exact same.
>>>~M
>>>
>>>>Which means that IE's caption will also be the same, I guess? Like when you go to Universal Thread, IE will always show "Universal Thread" in the upper left corner of the browser.
>>>>