Ejemplo n.º 1
0
        public HtmlViewPane(bool showNavigation)
        {
            Dock = DockStyle.Fill;
            Size = new Size(500, 500);

            webBrowser                    = new ExtendedWebBrowser();
            webBrowser.Dock               = DockStyle.Fill;
            webBrowser.Navigating        += WebBrowserNavigating;
            webBrowser.NewWindowExtended += NewWindow;
            webBrowser.Navigated         += WebBrowserNavigated;
            webBrowser.StatusTextChanged += WebBrowserStatusTextChanged;
            webBrowser.DocumentCompleted += WebBrowserDocumentCompleted;
            Controls.Add(webBrowser);

            if (showNavigation)
            {
                toolStrip           = ToolbarService.CreateToolStrip(this, "/SharpDevelop/ViewContent/Browser/Toolbar");
                toolStrip.GripStyle = ToolStripGripStyle.Hidden;
                Controls.Add(toolStrip);
            }
        }
Ejemplo n.º 2
0
 public WebBrowserExtendedEvents(ExtendedWebBrowser browser)
 {
     this.browser = browser;
 }