Skip to content

Instantly share code, notes, and snippets.

@dck-jp
Created June 6, 2015 11:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dck-jp/d883c7dd7be88a415ef5 to your computer and use it in GitHub Desktop.
Save dck-jp/d883c7dd7be88a415ef5 to your computer and use it in GitHub Desktop.
SHDocVwSample12
public void JumpFramePage()
{
var IE = new SHDocVw.InternetExplorer();
IE.Visible = true;
object URL = "http://homepage3.nifty.com/abe-hiroshi/";
IE.Navigate2(ref URL);
IE.Wait();
var doc = IE.Document as mshtml.IHTMLDocument2;
object x = 1;
var window = doc.frames.item(ref x) as mshtml.HTMLWindow2;
object url2 = window.location.href;
IE.Navigate2(ref url2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment