Click to See Complete Forum and Search --> : Getting The Links From A WebBrowser Control


2MuchRiceMakesMeSick
July 30th, 2007, 12:16 AM
Im looking to get the links [a href] from a web browser control.

i have added mshtml reference and I think im on the right track but can someone help me further


mshtml::IHTMLDocument2 ^ htmlDoc = (mshtml::IHTMLDocument2^)webBrowser1->Document;
mshtml::IHTMLElementCollection ^ links = htmlDoc->links;


what do I do from here?