Windows Develop Bookmark and Share   
 index > Windows Forms General > How to Get the Url of a Hyperlink?
 

How to Get the Url of a Hyperlink?

Hi all,

I want to get Url of Hyperlink of webpage, and I use "IHTMLAnchorElement" interface.

This works fine for normal links but if link is an address of file for downloading it does not work.

I tried to use "IHTMLLinkElement" interface instead of "IHTMLAnchorElement" interface but this does not resolve this problem.

Best regards.

Knowledge is power
MNour.AI  Sunday, April 26, 2009 12:32 PM
Hi MNour,

Could you please provide more information about your scenario?

> This works fine for normal links

If possible, show us sample code thatworks fine.

Thanks,
Linda Liu
Linda Liu  Monday, May 04, 2009 9:38 AM

You can use google to search for other answers

Custom Search

More Threads

• Windows API
• Webbrowser document event list
• treeView1.SelectedNode.ForeColor
• C# ListViewItems sometimes lose their BackColor settings when I run the .exe file directly
• Custom Event in Extended control fires 1 time for each control on the form
• Image Combo vb.net
• Temporarily changing Connection Str to Invalid Connection
• Music looping: wmppsStopped depreciated in WMP? Events won't fire
• How can I make WebBrowser and AxWebBrowser the same thing.
• Dynamically adding CONTROLS in VC++