473,225 Members | 1,305 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

How to get Title when Drag and Drop link from IE to my app?

My C# application supports drag and drop of files, folders, shortcuts and
links from other applications into mine. This all works pretty nicely,
except that I am trying to get a little more information when a web link is
dropped onto my application from Internet Explorer.

When you drag the link in the Address bar of Internet Explorer to your
desktop, the desktop shortcut that gets created has the Title of the web page
as it’s name, and it also picks up the custom Icon for that web page. I’m
trying to figure out how to get that information out of the
DragEventArgs.Data property when the same kind of link is dropped onto my
application, but I have had no luck.

Here is a summary of what I know so far (e is the DragEventArgs):

- The e.Data.GetData(DataFormats.Text) returns the URL. This works fine.

- Some of the other DataFormats choices return the URL as well, but I’ve
tried them all and that’s all there is. No other information available in
those choices.

- I thought the e.Data.GetFormats() would tell me something, but it just
returns an empty array of strings (string[0]), so I guess that Internet
Explorer doesn’t really support that call.

- I found a solution on the web that uses
e.Data.GetData("FileGroupDescriptor") to get a System.IO.Stream that is
supposed to contain the Title of the web page, but I found that it just
contained the same URL or a reference to a file name, depending on the web
site.

So, my question is, do you know how to get the Title of the web page when
dragging and dropping a link from IE to an application? I assume there must
be a way, since Windows can do this when you drop it on the desktop as a
shortcut.

Of less importance to me, but also interesting, is how can you get the
custom Icon associated with the web page?

--
C# Developer
Aug 21 '06 #1
1 3250
Hello, anybody out there? The MSDN subscription page claims that I should
have gotten a response within two business days, but it's been more like a
week and a half now. Any thoughts at all?
--
C# Developer
Aug 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: WindAndWaves | last post by:
Hi everyone, Has anyone got any experience with drop and drag in Access? I would like to make a calendar style form where my users can drop and drag appointments.... I am using Access 2003...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
3
by: James Radke | last post by:
Hello, I was curious, is it possible to create drag and drop interface from listbox to listbox on a webform application (i.e. vb.net)? Basically the application would need to load multiple...
4
by: kemal asad | last post by:
how can i create a vb application where i can drag and drop ( with a move caracteristic) email from outlook, into my application( email viewer). thanks, any help is welcome, samples a great way of...
1
by: Just Me | last post by:
I noticed I could drag a filename from windowsexplorer onto a richtextbox and drop it as a Link and the result is a link on the box that open the file if I click it. Is that the whole story. ...
6
by: Dave | last post by:
I am trying to implement drag and drop in a C# app, but for some reason I can't get it to call the GiveFeedback event. I have done everything by the book as far as I can tell, but a breakpoint in...
0
by: RHSFSS | last post by:
Hi, I have a Drag and Drop registration problem (See http://www.thescripts.com/forum/thread434707.html for similar problem post), can anyone out thereadvise on the best solution? I have a .NET 2.0 ...
0
by: Romulo NF | last post by:
Ive recently posted a script to move columns from a table using drag and drop javascript. Recently ive received a message of a user of this communty showing interest in the script to move lines...
2
by: Andreas Mueller | last post by:
Hi All, I'm trying to show a context menu during a drag drop operation similar to the windows explorers right click drag and drop behavior (A full working sample is at the end of the post): ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.