Getting focus on an HTML iframe
Posted on 2002-06-17
I am trying to gain focus of an iframe in a html document.
public AxSHDocVw.AxWebBrowser axWebBrowser1;
I can get the document fine and can view it in the broswer control or view the HTML in a textbox.
IHTMLDocument2 HTMLDocument =(IHTMLDocument2)WebBrowser1.Document;
However, I am trying to get focus on the data in the HTML iframe and put the text in that iframe into a string.
Everything works but i cant get anything from the iframe. I seem to only get the text from the main html document.
Any help is appreciated.