Esempio n. 1
0
 public new bool GoBack()
 {
     if (CanGoBack)
     {
         mshtml.IOmHistory history = GetHistory();
         history.back(null);
     }
     return(false);
 }
Esempio n. 2
0
 public new bool GoForward()
 {
     if (CanGoForward)
     {
         mshtml.IOmHistory history = GetHistory();
         history.forward(null);
     }
     return(false);
 }
Esempio n. 3
0
        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);
        }