public new bool GoBack() { if (CanGoBack) { mshtml.IOmHistory history = GetHistory(); history.back(null); } return(false); }
public new bool GoForward() { if (CanGoForward) { mshtml.IOmHistory history = GetHistory(); history.forward(null); } return(false); }
private mshtml.IOmHistory GetHistory() { if (InvokeRequired) { return((mshtml.IOmHistory)Invoke(new Func <mshtml.IOmHistory>(GetHistory))); } IHTMLDocument2 doc2 = GetActiveDocument() as mshtml.IHTMLDocument2; mshtml.IHTMLWindow2 win = doc2.parentWindow as mshtml.IHTMLWindow2; mshtml.IOmHistory history = win.history as mshtml.IOmHistory; return(history); }