I have an application where I am trying to drag image links from Internet Explorer into a textbox using OleDrag Drop. This should be easy to do, and it’s easy to actually get an image reference. However, the problem is that the data that is being dropped is a filename that points to the Temporary Internet Files folder, rather than a URL in the browser.

 

C:\Users\rstrahl\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\W1BGBVQJ\sailbig.jpg

 

The same thing happens when you drag an image into a new instance of Internet Explorer – you do see the image but if you check out the properties it actually shows the local filename as opposed to the URL.

 

Does anybody know whether it’s possible to pick up the original Web image URL with drag and drop? This must be possible somehow as IE internally can drag and drop between instances and pick up a full image reference – for example in an Html Edit box.

Anybody know how this can be done?

 

I’m using a Foxpro application here, and using OleDragDrop characteristics to pick up the data that’s being passed but I just tried this out in .NET and I get the same data.

 

Stumped.