Drag and Drop

  • Thread starter Thread starter Nathan Laff
  • Start date Start date
N

Nathan Laff

I am dragging a link from Internet Explorer...

I can get the URL fine, but i have seen some software that is able to get
the alt text of links, i.e. the popup hint on an image link.

How would I go about grabbing that as well?
 
I am dragging a link from Internet Explorer...

I can get the URL fine, but i have seen some software that is able to get
the alt text of links, i.e. the popup hint on an image link.

How would I go about grabbing that as well?

Have you tried the Hyperlink.Text property? THat seems to be close to
what you want.

rossum
 
Well that seems to be just for Web forms, I'm in a winform..

i.e. this returns me the link, i want the other properties to it...

private void FormDownload_DragEnter(object sender, DragEventArgs e)

{

if (e.Data.GetDataPresent(DataFormats.Text))

{

label1.Text = e.Data.GetData(DataFormats.Text).ToString();

}

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top